code: def download_file(url, local_path, headers=None):
      with requests.get(url, stream=True, headers=headers) as r:
          r.raise_for_status()
          assert r.headers["X-Content-Type-Options"] == "nosniff"
          assert "Content-Type" in r.headers
          assert "Content-Disposition" in r.headers
          with open(local_path, "wb") as f:
              for chunk in r.iter_content(chunk_size=8192):
                  f.write(chunk)
          return r
  
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 6 for calling a global function with example usage: download_file(url, local_path, headers) and returns: r