code: def test_pull(runner, wandb_init):
      with runner.isolated_filesystem():
          project_name = "test_pull"
          file_name = "weights.h5"
          run = wandb_init(project=project_name)
          with open(file_name, "w") as f:
              f.write("WEIGHTS")
          run.save(file_name)
          run.finish()
  
          # delete the file so that we can pull it and check that it is there
          os.remove(file_name)
  
          result = runner.invoke(
              cli.pull, [run.id, "--project", project_name]
          )
          print(result.output)
          print(result.exception)
          print(traceback.print_tb(result.exc_info[2]))
          assert result.exit_code == 0
          assert (
              f"Downloading: {project_name}/{run.id}" in result.output
          )
          assert os.path.isfile(file_name)
          assert f"File {file_name}" in result.output
  
file_path: wandb/tests/pytest_tests/system_tests/test_core/test_cli_full.py
imports: import netrc
  import os
  import traceback
  from unittest import mock
  import pytest
  import wandb
  from wandb.cli import cli
label_desc: Use image node_id 6 for calling a global function with example usage: test_pull(runner, wandb_init) without return types