code: def _patch_spawn_get_preparation_data():
      try:
          from multiprocessing import spawn as mp_spawn
  
          _raw_get_preparation_data = mp_spawn.get_preparation_data
  
          def _patched_get_preparation_data(*args, **kw):
              ret = _raw_get_preparation_data(*args, **kw)
              if getattr(_init_main_suspended_local, "value", False):
                  # make sure user module is not imported when start Mars cluster
                  ret.pop("init_main_from_name", None)
                  ret.pop("init_main_from_path", None)
              return ret
  
          _patched_get_preparation_data._mars_patched = True
          if not getattr(
              mp_spawn.get_preparation_data, "_mars_patched", False
          ):
              mp_spawn.get_preparation_data = (
                  _patched_get_preparation_data
              )
      except (ImportError, AttributeError):  # pragma: no cover
          pass
  
imports: import asyncio
  import concurrent.futures
  import contextlib
  import logging.config
  import multiprocessing
  import os
  import random
  import signal
  import sys
  import threading
  import uuid
  from dataclasses import dataclass
  from types import TracebackType
  from typing import List
  from ....utils import dataslots, ensure_coverage, reset_id_random_seed
  from ..config import ActorPoolConfig
  from ..message import CreateActorMessage
  from ..pool import MainActorPoolBase, SubActorPoolBase, _register_message_handler
label_desc: Use image node_id 1 for calling a global function with example usage: _patch_spawn_get_preparation_data() and returns: ret