code: def parse_yaml(text, path, typ="safe"):
      from ruamel.yaml import YAML
      from ruamel.yaml import YAMLError as _YAMLError
  
      yaml = YAML(typ=typ)
      with reraise(_YAMLError, YAMLFileCorruptedError(path)):
          return yaml.load(text) or {}
  
file_path: dvc/dvc/utils/serialize/_yaml.py
imports: import io
  from collections import OrderedDict
  from contextlib import contextmanager
  from typing import Any, TextIO
  from funcy import reraise
  from ._common import ParseError, _dump_data, _load_data, _modify_data
label_desc: Use image node_id 2 for calling a global function with example usage: parse_yaml(text, path, typ) and returns: unknown