code: def test_agent_ignore(live_mock_server):
      sweep_entities = []
      sweep_projects = []
  
      def train():
          run = wandb.init(entity="ign", project="ignored")
          sweep_projects.append(run.project)
          sweep_entities.append(run.entity)
          run.finish()
  
      wandb.agent("test-sweep-id-3", function=train, count=1)
  
      assert len(sweep_projects) == len(sweep_entities) == 1
      assert sweep_projects[0] == "test"
      assert sweep_entities[0] == "mock_server_entity"
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_agent_ignore(live_mock_server) without return types