code: def group_spec(spec):
      '''<organization>/<group_name>/<member>'''
      org = spec
      group = member = None
      if '/' in org:
          org, group = org.split('/', 1)
      if group and '/' in group:
          group, member = group.split('/', 1)
      if member and '/' in member:
          raise UserError('Invalid group specification "%s" (unexpected "/" in %s)' % member)
  
      return GroupSpec(org, group, member, specf group_spec(spec):
      '''<organization>/<group_name>/<member>'''
      org = spec
      group = member = None
      if '/' in org:
          org, group = org.split('/', 1)
      if group and '/' in group:
          group, member = group.split('/', 1)
      if member and '/' in member:
          raise UserError('Invalid group specification "%s" (unexpected "/" in %s)' % member)
  
      return GroupSpec(org, group, member, spec)
docs: <organization>/<group_name>/<member>