code: def test_project_sweeps(mock_server, api):
      project = api.from_path("test")
      psweeps = project.sweeps()
      assert len(psweeps) == 1
      assert psweeps[0].id == "testid"
      assert psweeps[0].name == "testname"
  
      no_sweeps_project = api.from_path("testnosweeps")
      nspsweeps = no_sweeps_project.sweeps()
      assert len(nspsweeps) == 0
  
imports: import wandb
label_desc: Use image node_id 2 for calling a global function with example usage: test_project_sweeps(mock_server, api) without return types