code: def test_augmented_raise_for_status():
      response = requests.Response()
      response.status_code = 403
      response._content = b"Token expired"
  
      with mock.patch(
          "requests.Session.request", return_value=response
      ) as mock_request:
          response = requests.get(
              "https://github.com/mlflow/mlflow.git"
          )
          mock_request.assert_called_once()
  
      with pytest.raises(
          requests.HTTPError, match="Token expired"
      ) as e:
          augmented_raise_for_status(response)
  
      assert e.value.response == response
      assert e.value.request == response.request
      assert response.text in str(e.value)
  
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 28 for calling a global function with example usage: test_augmented_raise_for_status() without return types