code: def launch_project_factory(resource_args: dict, api: Api):
      """Construct a dummy LaunchProject with the given resource args."""
      return LaunchProject(
          api=api,
          docker_config={
              "docker_image": "test-image",
          },
          resource_args=resource_args,
          uri="",
          job="",
          launch_spec={},
          target_entity="",
          target_project="",
          name="",
          git_info={},
          overrides={},
          resource="vertex",
          run_id="",
      )
  
file_path: wandb/tests/pytest_tests/unit_tests/test_launch/test_runner/test_vertex.py
imports: from typing import List
  from unittest.mock import MagicMock
  import pytest
  from wandb.apis.internal import Api
  from wandb.sdk.launch._project_spec import LaunchProject
  from wandb.sdk.launch.errors import LaunchError
  from wandb.sdk.launch.runner.vertex_runner import VertexRunner, VertexSubmittedRun
label_desc: Use image node_id 1 for calling a global function with example usage: launch_project_factory(resource_args, api) and returns: LaunchProject