import yaml


def format(obj):  # pylint: disable=W0622
    """Returns yaml representation of the object."""
    return yaml.dump(obj,
                     default_flow_style=False,
                     explicit_start=True,
                     explicit_end=True)