code: def test_run_file(runner, mock_server, api):
      with runner.isolated_filesystem():
          run = api.run("test/test/test")
          file = run.file("weights.h5")
          assert not os.path.exists("weights.h5")
          file.download()
          assert os.path.exists("weights.h5")
  
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 2 for calling a global function with example usage: test_run_file(runner, mock_server, api) without return types