def METHOD_NAME(self, groupid):
    try:
        group = self.proxmox_api.access.groups.get(groupid)
    except Exception:
        self.module.fail_json(msg="Group '%s' does not exist" % groupid)
    group['groupid'] = groupid
    return ProxmoxGroup(group)