code: def is_local_launch(launch_type: Union[LaunchType, str]) -> bool:
      """Returns true if launch type is local multithreading/multiprocessing.
  
      If you use `--lp_launch_type=...`, please call it with
      `is_local_launch(lp.LAUNCH_TYPE.value)`, where lp.LAUNCH_TYPE.value gives the
      value of `--lp_launch_type`.
  
      Args:
        launch_type: A string (e.g., 'local_mp') or a LaunchType object.
  
      Returns:
        True if launch_type is a local one, otherwise False.
      """
      if isinstance(launch_type, str):
          launch_type = LaunchType(launch_type)
      return launch_type in [
          LaunchType.LOCAL_MULTI_THREADING,
          LaunchType.LOCAL_MULTI_PROCESSING,
      ]
  
file_path: launchpad/launchpad/context.py
imports: import enum
  import threading
  from typing import Any, Callable, Optional, Union
label_desc: Use image node_id 3 for calling a global function with example usage: is_local_launch(launch_type) and returns: unknown