code: def get_container_engine(
      engine_name: Engine, dryrun: bool = False
  ) -> ContainerEngine:
      engine: ContainerEngine
  
      if engine_name == Engine.Docker:
          engine = Docker()
      elif engine_name == Engine.Podman:
          engine = Podman()
  
      if not dryrun and not engine.is_available():
          error(
              f"Error: '{engine_name}' is unavailable. "
              "Make sure it is installed and running."
          )
          raise Exit(1)
  
      return engine
  
imports: from enum import Enum
  from pathlib import Path
  from shutil import rmtree
  import tarfile
  from typing import List
  from typer import Exit
  from typer import Option
  from typing_extensions import Annotated
  from ..core.console import debug
  from ..core.console import error
  from ..core.console import info
  from ..core.console import success
  from ..core.container_engine import ContainerEngine
  from ..core.container_engine import ContainerEngineError
  from ..core.container_engine import Docker
  from ..core.container_engine import Podman
  from ..core.syft_repo import SyftRepo
  from ..core.syft_version import InvalidVersion
  from ..core.syft_version import SyftVersion
label_desc: Use image node_id 3 for calling a global function with example usage: get_container_engine(engine_name, dryrun) and returns: engine