code: def get_category_to_class_mapping(
      dataset_cfg: CfgNode,
  ) -> Dict[str, int]:
      return {
          category: int(class_id)
          for category, class_id in dataset_cfg.CATEGORY_TO_CLASS_MAPPING.items()
      }
  
imports: import os
  from typing import Dict, Optional
  from detectron2.config import CfgNode
label_desc: Use image node_id 4 for calling a global function with example usage: get_category_to_class_mapping(dataset_cfg) and returns: unknown