code: def mock_aiplatform(mocker):
      """Patch the aiplatform module with a mock object and return that object."""
      mock = MagicMock()
  
      def _fake_get_module(*args, **kwargs):
          return mock
  
      mocker.patch(
          "wandb.sdk.launch.runner.vertex_runner.get_module",
          side_effect=_fake_get_module,
      )
      return mock
  
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 3 for calling a global function with example usage: mock_aiplatform(mocker) and returns: mock, mock