code: def get_worker_manager() -> (
      Union[
          worker_manager.WorkerManager, worker_manager_v2.WorkerManager
      ]
  ):
      if lp_flags.LP_WORKER_MANAGER_V2.value:
          return worker_manager_v2.get_worker_manager()
      else:
          return worker_manager.get_worker_manager()
  
file_path: launchpad/launchpad/launch/worker_manager_migration.py
imports: from typing import Optional, Union
  from launchpad import flags
  from launchpad.launch import worker_manager
  from launchpad.launch import worker_manager_v2
label_desc: Use image node_id 2 for calling a global function with example usage: get_worker_manager() and returns: worker_manager_v2, worker_manager