import textwrap
import yaml


def _yaml_filter(value: dict, indent: int = 0) -> str:
    """Render the value as yaml."""
    if not value:
        return ""

    return textwrap.indent(yaml.safe_dump(value), prefix=indent * " ")