code: def upload_file(path, url, headers=None):
      with open(path, "rb") as f:
          requests.put(url, data=f, headers=headers).raise_for_status()
  
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 5 for calling a global function with example usage: upload_file(path, url, headers) without return types