code: def stop_event():
      if lp_flags.LP_WORKER_MANAGER_V2.value:
          return worker_manager_v2.get_worker_manager().stop_event
      else:
          return worker_manager.get_worker_manager().stop_event()
  
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 5 for calling a global function with example usage: stop_event() and returns: worker_manager_v2, worker_manager