code: def _get_engine(
      engine: Literal["pyarrow"] | ORCEngine,
  ) -> type[ArrowORCEngine] | ORCEngine:
      if engine == "pyarrow":
          from dask.dataframe.io.orc.arrow import ArrowORCEngine
  
          return ArrowORCEngine
      elif not isinstance(engine, ORCEngine):
          raise TypeError(
              "engine must be 'pyarrow' or an ORCEngine object"
          )
      return engine
  
imports: from __future__ import annotations
  import copy
  from typing import TYPE_CHECKING, Literal
  from fsspec.core import get_fs_token_paths
  from fsspec.utils import stringify_path
  from dask.base import compute_as_if_collection, tokenize
  from dask.dataframe.backends import dataframe_creation_dispatch
  from dask.dataframe.core import DataFrame, Scalar
  from dask.dataframe.io.io import from_map
  from dask.dataframe.io.orc.utils import ORCEngine
  from dask.dataframe.io.utils import DataFrameIOFunction
  from dask.highlevelgraph import HighLevelGraph
  from dask.utils import apply
label_desc: Use image node_id 1 for calling a global function with example usage: _get_engine(engine) and returns: engine, ArrowORCEngine