code: def remove_users(self, user_ids, nid=None):
          
          r = self.request(
              method="network.update",
              data={"remove_users": user_ids},
              nid=nid,
              nid_key="id"
          )
          return self._handle_error(r, "Could not remove users.")
docs: Remove users from a network `nid`
  
          :type  user_ids: list of str
          :param user_ids: a list of user ids. These are the same
              ids that are returned by get_all_users.
          :type  nid: str
          :param nid: This is the ID of the network to remove students
              from. This is optional and only to override the existing
              `network_id` entered when created the class
          :returns: Python object containing returned data, a list
              of dicts of user data of all of the users remaining in
              the network after users are removed.