code: def get_engine(engine_name: str) -> Engine:
      if engine_name not in _ENGINE_REGISTRY:
          valid_names = ",".join(_ENGINE_REGISTRY.keys())
          raise ValueError(
              f"Unknown engine name {engine_name}: please use any of [{valid_names}]"
          )
  
      cls = _ENGINE_REGISTRY[engine_name]
      return cls()
  
file_path: vissl/vissl/engines/engine_registry.py
imports: import abc
  import traceback
  from typing import Any, Callable, List
  from classy_vision.hooks import ClassyHook
  from vissl.config.attr_dict import AttrDict
  from vissl.hooks import default_hook_generator
label_desc: Use image node_id 2 for calling a global function with example usage: get_engine(engine_name) and returns: cls