def normalize_groups(domains):
    ret = [
        dict(
            id=domain.get('id'),
            name=domain.get('name'),
            description=domain.get('description'),
            domain_id=domain.get('domain_id'),
        ) for domain in domains
    ]
    return meta.obj_list_to_dict(ret)
Normalize Identity groups.
dataset/ETHPy150Open openstack-infra/shade/shade/_utils.py/normalize_groups