code: def make_request(self, url, method="GET", data=None):
      if method not in ["GET", "POST"]:
          raise ValueError("Invalid HTTP request method")
      headers = {"Content-type": "application/json"}
      if self.auth_token:
          headers["Authorization"] = "JWT " + self.auth_token
      request_method = getattr(requests, method.lower())
      if data and len(data) > 0:
          data = json.dumps(data)
          resp = request_method(url, data, headers=headers)
      else:
          resp = request_method(url, headers=headers)
      content = {}
      if resp.status_code == 200:
          content = {
              "content": json.loads(resp.content.decode()),
              "code": 200,
          }
      else:
          content = {
              "content": {},
              "code": resp.status_code,
              "error": resp.text,
          }
      return content
  
file_path: mindsdb/mindsdb/integrations/handlers/dockerhub_handler/dockerhub.py
imports: import json
  import requests
label_desc: Use image node_id 2 for calling the DockerHubClient obj's underlying member method code with example usage: obj.make_request(url, method, data) and returns: content