code: def get_group(group):
      
      portal_groups = get_tool("portal_groups")
      if isinstance(group, basestring):
          group = portal_groups.getGroupById(group)
      elif isinstance(group, GroupData):
          group = group
      return group
docs: Return the group
  
      :param group: The group name/id
      :returns: Group