import typing
import yaml


def yamldump(data: typing.Any) -> str:
    """Convert a python data structure to a YAML string.

    Args:
       data: the data structure to convert.
    Returns:
       A string that represents the data in YAML format.
    """
    return yaml.dump(data, Dumper=yaml.CDumper)