code: def _basic_subprocess_cmd() -> Sequence[str]:
      import __main__  # local import to avoid https://github.com/Lightning-AI/lightning/issues/15218
  
      if __main__.__spec__ is None:  # pragma: no-cover
          return [
              sys.executable,
              os.path.abspath(sys.argv[0]),
          ] + sys.argv[1:]
      return [sys.executable, "-m", __main__.__spec__.name] + sys.argv[
          1:
      ]
  
imports: import logging
  import os
  import signal
  import subprocess
  import sys
  import threading
  import time
  from typing import Any, Callable, List, Optional, Sequence, Tuple
  from lightning_utilities.core.imports import RequirementCache
  from typing_extensions import override
  from lightning.fabric.plugins.environments.cluster_environment import ClusterEnvironment
  from lightning.fabric.strategies.launchers.launcher import _Launcher
  from lightning.fabric.utilities.distributed import _set_num_threads_if_needed
  from lightning.fabric.utilities.rank_zero import rank_prefixed_message
label_desc: Use image node_id 1 for calling a global function with example usage: _basic_subprocess_cmd() and returns: unknown, unknown