def format_group_info(name):
    d = {}
    try:
        gr = grp.getgrnam(name)
        d["present"] = True
        d["name"] = gr.gr_name
        d["members"] = gr.gr_mem
        d["gid"] = str(gr.gr_gid)
    except __HOLE__:
        d["present"] = False

    return d
dataset/ETHPy150Open comodit/synapse-agent/synapse/resources/groups-plugin/unix-groups.py/format_group_info