code: def col2cat(cat_lookup: Dict[str, str], col: str):
      return cat_lookup[col] if col in cat_lookup else col
  
imports: from typing import TYPE_CHECKING, Any, Dict, List, Optional
  from .Engine import Engine, DataframeLike, DataframeLocalLike
  import numpy, pandas, pyarrow, sys
  from .util import setup_logger
label_desc: Use image node_id 2 for calling a global function with example usage: col2cat(cat_lookup, col) and returns: unknown