code: def launch_with_tmux_session(
      commands_to_launch, session_name_prefix=None
  ) -> Union[
      worker_manager.WorkerManager, worker_manager_v2.WorkerManager
  ]:
      """Launch multiple CommandToLaunch tuples in a new tmux session."""
  
      if not feature_testing.has_tmux():
          raise ValueError(
              "tmux is not available, please choose another way to launch "
              "or install it."
          )
  
      session_name_prefix = (
          session_name_prefix or flags.FLAGS.tmux_session_name
      )
  
      return _launch_with_multiplex_session(
          commands_to_launch, session_name_prefix, "tmux"
      )
  
file_path: launchpad/launchpad/launch/run_locally/launch_local_tmux.py
imports: import atexit
  import os
  import subprocess
  from typing import Union
  from absl import flags
  from absl import logging
  from launchpad import flags
  from launchpad.launch import worker_manager
  from launchpad.launch import worker_manager_v2
  from launchpad.launch.run_locally import feature_testing
label_desc: Use image node_id 1 for calling a global function with example usage: launch_with_tmux_session(commands_to_launch, session_name_prefix) and returns: _launch_with_multiplex_session