def _dbs_by_group(self, group, check_len=None):
        """Given a database group, returns the list of dbs associated with it"""
        dbs = self.partition_config['groups'][group]
        if check_len:
            assert len(dbs) == check_len
        return dbs
dataset/ETHPy150Open dimagi/commcare-hq/corehq/sql_db/config.py/PartitionConfig._dbs_by_group/original