def _groupname():
    if grp:
        groupname = grp.getgrgid(os.getgid()).gr_name
    else:
        groupname = ''

    return groupname
This is a tool context command for 3d Paint tool. In query mode, return type is based on queried flag.
dataset/ETHPy150Open saltstack/salt/salt/grains/minion_process.py/_groupname--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/extras/completion/py/pymel/core/context.py/art3dPaintCtx