code: def to_omegaconf(item):
      """
      Some parsers return custom classes (i.e. parse_yaml_for_update)
      that can mess up with omegaconf logic.
      Cast the custom classes to Python primitives.
      """
      if isinstance(item, dict):
          return {k: to_omegaconf(v) for k, v in item.items()}
      if isinstance(item, list):
          return [to_omegaconf(x) for x in item]
      return item
  
file_path: dvc/dvc/utils/collections.py
imports: from collections.abc import Mapping
  from typing import Dict, Iterable, List, Union, no_type_check
label_desc: Use image node_id 2 for calling a global function with example usage: to_omegaconf(item) and returns: item, unknown, unknown