code: def test_run_wait_until_finished(runner, mock_server, api, capsys):
      run = api.run("test/test/test")
      run.wait_until_finished()
      out, _ = capsys.readouterr()
      status = mock_server.ctx["run_state"]
      assert f"Run finished with status: {status}" in out
  
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 8 for calling a global function with example usage: test_run_wait_until_finished(runner, mock_server, api, capsys) without return types