code: def test_launch_job_artifact(
      live_mock_server,
      test_settings,
      mock_load_backend,
      mocked_public_artifact,
      monkeypatch,
  ):
      api = wandb.sdk.internal.internal_api.Api(
          default_settings=test_settings, load_settings=False
      )
  
      def job_download_func(root):
          with open(os.path.join(root, "wandb-job.json"), "w") as f:
              source = {
                  "_version": "v0",
                  "source_type": "artifact",
                  "source": {
                      "artifact": "wandb-artifact://mock_server_entity/test/runs/1/artifacts/test-artifact",
                      "entrypoint": ["python", "train.py"],
                  },
                  "input_types": INPUT_TYPES,
                  "output_types": OUTPUT_TYPES,
              }
              f.write(json.dumps(source))
          with open(
              os.path.join(root, "requirements.frozen.txt"), "w"
          ) as f:
              f.write(utils.fixture_open("requirements.txt").read())
  
      mocked_public_artifact(job_download_func)
  
      api = wandb.sdk.internal.internal_api.Api(
          default_settings=test_settings, load_settings=False
      )
      kwargs = {
          "job": "mock_server_entity/test/test-job:v0",
          "api": api,
          "entity": "mock_server_entity",
          "project": "test",
      }
      mock_with_run_info = _launch.launch(**kwargs)
      check_mock_run_info(
          mock_with_run_info, EMPTY_BACKEND_CONFIG, kwargs
      )
  
file_path: wandb/tests/pytest_tests/unit_tests_old/test_launch/test_launch_jobs.py
imports: import json
  import os
  from unittest import mock
  import pytest
  import wandb
  import wandb.sdk.launch._launch
  import wandb.sdk.launch._project_spec
  from wandb.sdk.data_types._dtypes import TypeRegistry
  from wandb.sdk.launch.errors import LaunchError
  from tests.pytest_tests.unit_tests_old import utils
  from .test_launch import EMPTY_BACKEND_CONFIG, check_mock_run_info, code_download_func, mock_load_backend, mocked_fetchable_git_repo
label_desc: Use image node_id 3 for calling a global function with example usage: test_launch_job_artifact(live_mock_server, test_settings, mock_load_backend, mocked_public_artifact, monkeypatch) without return types