code: def _dump(data: Any, stream: TextIO) -> Any:
      yaml = _get_yaml()
      return yaml.dump(data, stream)
  
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 5 for calling a global function with example usage: _dump(data, stream) and returns: yaml