code: def test_sweep(runner, mock_server, api):
      sweep = api.sweep("test/test/test")
      assert sweep.entity == "test"
      assert sweep.best_run().name == "beast-bug-33"
      assert sweep.url == "https://wandb.ai/test/test/sweeps/test"
      assert sweep.state in ["running", "finished"]
      assert str(sweep) == "<Sweep test/test/test (running)>"
  
imports: import wandb
label_desc: Use image node_id 3 for calling a global function with example usage: test_sweep(runner, mock_server, api) without return types