code: def _setup(mocker):
      launch_project = MagicMock()
      launch_project.target_project = "test-project"
      launch_project.target_entity = "test-entity"
      launch_project.run_id = "test-run-id"
      launch_project.sweep_id = "test-sweep-id"
      launch_project.docker_image = "test-docker-image"
      launch_project.name = "test-name"
      launch_project.launch_spec = {"author": "test-author"}
      launch_project.queue_name = "test-queue-name"
      launch_project.queue_entity = "test-queue-entity"
      launch_project.run_queue_item_id = "test-run-queue-item-id"
      launch_project.override_config = {}
      launch_project.override_args = []
      launch_project.override_artifacts = {}
  
      mocker.launch_project = launch_project
  
      api = MagicMock()
      api.settings = lambda x: x
      api.api_key = "test-api-key"
      mocker.api = api
  
      mocker.patch("json.dumps", lambda x: "test-wandb-artifacts")
  
file_path: wandb/tests/pytest_tests/unit_tests/test_launch/test_builder/test_build.py
imports: import hashlib
  from unittest.mock import MagicMock
  import pytest
  from wandb.sdk.launch.builder import build
  from wandb.sdk.launch.builder.build import registry_from_uri
  from wandb.sdk.launch.errors import LaunchError
label_desc: Use image node_id 5 for calling a global function with example usage: _setup(mocker) without return types