code: def api_request(method, url, payload=None, headers=None):
      method = method.lower()
  
      fnc = getattr(requests, method)
  
      url = f'{HTTP_API_ROOT}/{url.lstrip("/")}'
      response = fnc(url, json=payload, headers=headers)
  
      return response
  
file_path: mindsdb/tests/integration_tests/flows/http_test_helpers.py
imports: import requests
  import time
  from mindsdb.api.executor.data_types.response_type import RESPONSE_TYPE
  from .conftest import HTTP_API_ROOT
label_desc: Use image node_id 1 for calling the HTTPHelperMixin obj's underlying member method code with example usage: obj.api_request(method, url, payload, headers) and returns: response