code: def ifusergroup(parser, token):
      
      try:
          tokensp = token.split_contents()
          groups = []
          groups+=tokensp[1:]
      except ValueError:
          raise template.TemplateSyntaxError("Tag 'ifusergroup' requires at least 1 argument.")
  
      nodelist_true = parser.parse(('else', 'endifusergroup'))
      token = parser.next_token()
  
      if token.contents == 'else':
          nodelist_false = parser.parse(tuple(['endifusergroup',]))
          parser.delete_first_token()
      else:
          nodelist_false = NodeList()
  
      return GroupCheckNode(groups, nodelist_true, nodelist_false)
docs: Check to see if the currently logged in user belongs to a specific
      group. Requires the Django authentication contrib app and middleware.
  
      Usage: {% ifusergroup Admins %} ... {% endifusergroup %}, or
             {% ifusergroup Admins Clients Sellers %} ... {% else %} ... {% endifusergroup %}