code: def test_server_overrides_requested_mime_type(
      artifacts_server,
      tmp_path,
      filename,
      requested_mime_type,
      responded_mime_type,
  ):
      default_artifact_root = artifacts_server.default_artifact_root
      test_file = tmp_path.joinpath(filename)
      test_file.touch()
      upload_file(
          test_file,
          f"{default_artifact_root}/dir/{filename}",
      )
      download_response = download_file(
          f"{default_artifact_root}/dir/{filename}",
          test_file,
          headers={"Accept": requested_mime_type},
      )
  
      _, params = cgi.parse_header(
          download_response.headers["Content-Disposition"]
      )
      assert params["filename"] == filename
      assert (
          download_response.headers["Content-Type"]
          == responded_mime_type
      )
  
imports: import cgi
  import os
  import pathlib
  import subprocess
  import tempfile
  from collections import namedtuple
  import pytest
  import requests
  import mlflow
  from mlflow import MlflowClient
  from mlflow.artifacts import download_artifacts
  from tests.helper_functions import LOCALHOST, get_safe_port
  from tests.tracking.integration_test_utils import _await_server_up_or_die
label_desc: Use image node_id 18 for calling a global function with example usage: test_server_overrides_requested_mime_type(artifacts_server, tmp_path, filename, requested_mime_type, responded_mime_type) without return types