code: def _send_request(self, url, method="get", data=None, extra_headers=None):
          
          headers = {'Content-type': 'application/json'}
          if isinstance(extra_headers, dict):
              headers.update(extra_headers)
  
          if not data or "password" not in data:
              logger.debug("Sending {method} request to {url} with data {data}".format(
                  method=method.upper(), url=url, data=data)
              )
          r = self.session.request(method, url, headers=headers, data=data)
          r.raise_for_status()
          return r.json()
docs: Performs a given request and returns a json object
  
          Args:
              url (str): URL of the request
              method (str): Any of "get", "post", "delete"
              data (any): Possible extra data to send with the request
              extra_headers (dict): Possible extra headers to send along in the request
          Returns:
              dict