code: def update_or_create(cls, append_lists=True, with_status=False,
                           remove_members=False, **kwargs):
          
          was_created, was_modified = False, False 
          element = None
          try: 
              element = cls.get(kwargs.get('name'))
              was_modified = element.update_members(
                  kwargs.get('members', []),
                  append_lists=append_lists,
                  remove_members=remove_members)
          except ElementNotFound: 
              element = cls.create(
                  kwargs.get('name'),
                  members = kwargs.get('members', []))
              was_created = True
          
          if with_status:
              return element, was_modified, was_created
          return element
docs: Update or create group entries. If the group exists, the members
          will be updated. Set append_lists=True to add new members to
          the list, or False to reset the list to the provided members. If
          setting remove_members, this will override append_lists if set.
          
          :param bool append_lists: add to existing members, if any
          :param bool remove_members: remove specified members instead of appending
              or overwriting
          :paran dict kwargs: keyword arguments to satisfy the `create`
              constructor if the group needs to be created.
          :raises CreateElementFailed: could not create element with reason 
          :return: element instance by type 
          :rtype: Element