code: def test_run_files(runner, mock_server, api):
      with runner.isolated_filesystem():
          run = api.run("test/test/test")
          file = run.files()[0]
          file.download()
          assert os.path.exists("weights.h5")
          raised = False
          try:
              file.download()
          except wandb.CommError:
              raised = True
          assert raised
  
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 1 for calling a global function with example usage: test_run_files(runner, mock_server, api) without return types