import yaml
import json


def render_yaml(value):
    """
    Render a dictionary as formatted YAML.
    """
    return yaml.dump(
        json.loads(json.dumps(value)), explicit_start=True, explicit_end=False, indent=2
    )