code: def test_run_upload_file_relative(runner, mock_server, api):
      with runner.isolated_filesystem():
          run = api.run("test/test/test")
          filesystem.mkdir_exists_ok("foo")
          os.chdir("foo")
          with open("new_file.pb", "w") as f:
              f.write("TEST")
          file = run.upload_file("new_file.pb", "../")
          assert (
              file.url
              == "https://api.wandb.ai/storage?file=foo/new_file.pb"
          )
  
file_path: wandb/tests/pytest_tests/unit_tests_old/test_core/test_public_api.py
imports: import os
  import requests
  import wandb
  from wandb.sdk.lib import filesystem
label_desc: Use image node_id 4 for calling a global function with example usage: test_run_upload_file_relative(runner, mock_server, api) without return types