code: def test_provide_redirect_kwarg():
      with mock.patch("requests.Session.request") as mock_request:
          mock_request.return_value.status_code = 302
          mock_request.return_value.text = "mock response"
  
          response = http_request(
              MlflowHostCreds("http://my-host"),
              "/my/endpoint",
              "GET",
              allow_redirects=False,
          )
  
          assert response.text == "mock response"
          mock_request.assert_called_with(
              "GET",
              "http://my-host/my/endpoint",
              allow_redirects=False,
              headers=mock.ANY,
              verify=mock.ANY,
              timeout=120,
          )
  
imports: import re
  from unittest import mock
  import numpy
  import pytest
  import requests
  from mlflow.environment_variables import MLFLOW_HTTP_REQUEST_TIMEOUT
  from mlflow.exceptions import InvalidUrlException, MlflowException, RestException
  from mlflow.protos.databricks_pb2 import ENDPOINT_NOT_FOUND, ErrorCode
  from mlflow.protos.service_pb2 import GetRun
  from mlflow.pyfunc.scoring_server import NumpyEncoder
  from mlflow.tracking.request_header.default_request_header_provider import _USER_AGENT, DefaultRequestHeaderProvider
  from mlflow.utils.rest_utils import MlflowHostCreds, _can_parse_as_json_object, augmented_raise_for_status, call_endpoint, call_endpoints, http_request, http_request_safe
  from tests import helper_functions
label_desc: Use image node_id 29 for calling a global function with example usage: test_provide_redirect_kwarg() without return types