code: def dumps_yaml(d):
      stream = io.StringIO()
      _dump(d, stream)
      return stream.getvalue()
  
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 8 for calling a global function with example usage: dumps_yaml(d) and returns: stream