docs: def request(session, url, rule_payload, **kwargs):
      """
      Executes a request with the given payload and arguments.
  
      Args:
          session (requests.Session): the valid session object
          url (str): Valid API endpoint
          rule_payload (str or dict): rule package for the POST. If you pass a
              dictionary, it will be converted into JSON.
      """
      if isinstance(rule_payload, dict):
          rule_payload = json.dumps(rule_payload)
      logger.debug("sending request")
      result = session.post(url, data=rule_payload, **kwargs)
      return result