code: def test_databricks_http_request_integration(get_config, request):
      """Confirms that the databricks http request params can in fact be used as an HTTP request"""
  
      def confirm_request_params(*args, **kwargs):
          headers = DefaultRequestHeaderProvider().request_headers()
          headers["Authorization"] = "Basic dXNlcjpwYXNz"
          assert args == ("PUT", "host/clusters/list")
          assert kwargs == {
              "allow_redirects": True,
              "headers": headers,
              "verify": True,
              "json": {"a": "b"},
              "timeout": 120,
          }
          http_response = mock.MagicMock()
          http_response.status_code = 200
          http_response.text = '{"OK": "woo"}'
          return http_response
  
      request.side_effect = confirm_request_params
      get_config.return_value = DatabricksConfig.from_password(
          "host", "user", "pass", insecure=False
      )
  
      response = DatabricksJobRunner(
          databricks_profile_uri=None
      )._databricks_api_request(
          "/clusters/list", "PUT", json={"a": "b"}
      )
      assert json.loads(response.text) == {"OK": "woo"}
      get_config.reset_mock()
      response = DatabricksJobRunner(
          databricks_profile_uri=construct_db_uri_from_profile(
              "my-profile"
          )
      )._databricks_api_request(
          "/clusters/list", "PUT", json={"a": "b"}
      )
      assert json.loads(response.text) == {"OK": "woo"}
      assert get_config.call_count == 0
  
imports: import filecmp
  import json
  import os
  import shutil
  from unittest import mock
  import databricks_cli
  import pytest
  from databricks_cli.configure.provider import DatabricksConfig
  import mlflow
  from mlflow import MlflowClient, cli
  from mlflow.entities import RunStatus
  from mlflow.environment_variables import MLFLOW_TRACKING_URI
  from mlflow.exceptions import MlflowException
  from mlflow.projects import ExecutionException, databricks
  from mlflow.projects.databricks import DatabricksJobRunner, _get_cluster_mlflow_run_cmd
  from mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE, ErrorCode
  from mlflow.store.tracking.file_store import FileStore
  from mlflow.tracking.request_header.default_request_header_provider import DefaultRequestHeaderProvider
  from mlflow.utils import file_utils
  from mlflow.utils.mlflow_tags import MLFLOW_DATABRICKS_RUN_URL, MLFLOW_DATABRICKS_SHELL_JOB_RUN_ID, MLFLOW_DATABRICKS_WEBAPP_URL
  from mlflow.utils.uri import construct_db_uri_from_profile
  from tests import helper_functions
  from tests.integration.utils import invoke_cli_runner
  from tests.projects.utils import TEST_PROJECT_DIR, validate_exit_status
label_desc: Use image node_id 26 for calling a global function with example usage: test_databricks_http_request_integration(get_config, request) and returns: http_response