

def group_add(name, gid):
    cmd = ['/usr/sbin/groupadd']
    if gid:
        cmd += ['--gid', ('%s' % gid)]
    ret.append(name)
    ret = exec_cmd(' '.join(cmd))
    if ((ret['returncode'] != 9) and (ret['returncode'] != 0)):
        raise ResourceException(ret['stderr'])

dataset/ETHPy150Open comodit/synapse-agent/synapse/resources/groups-plugin/unix-groups.py group_add/VarMisuse@36/50 `cmd`->`ret`