code: def test_source_load_with_content_disposition_header(
      attachment_filename, expected_filename
  ):
      def download_with_mock_content_disposition_headers(
          *args, **kwargs
      ):
          response = cloud_storage_http_request(*args, **kwargs)
          if attachment_filename is not None:
              response.headers[
                  "Content-Disposition"
              ] = f"attachment; filename={attachment_filename}"
          else:
              response.headers["Content-Disposition"] = "attachment"
          return response
  
      with mock.patch(
          "mlflow.data.http_dataset_source.cloud_storage_http_request",
          side_effect=download_with_mock_content_disposition_headers,
      ):
          source = HTTPDatasetSource(
              "https://raw.githubusercontent.com/mlflow/mlflow/master/tests/datasets/winequality-red.csv"
          )
          source.load()
          loaded = source.load()
          assert os.path.exists(loaded)
          assert os.path.basename(loaded) == expected_filename
  
file_path: mlflow/tests/data/test_http_dataset_source.py
imports: import json
  import os
  from unittest import mock
  import pandas
  import pytest
  from mlflow.data.dataset_source_registry import get_dataset_source_from_json, resolve_dataset_source
  from mlflow.data.http_dataset_source import HTTPDatasetSource
  from mlflow.exceptions import MlflowException
  from mlflow.utils.os import is_windows
  from mlflow.utils.rest_utils import cloud_storage_http_request
label_desc: Use image node_id 4 for calling a global function with example usage: test_source_load_with_content_disposition_header(attachment_filename, expected_filename) and returns: response