def METHOD_NAME(catalog_body: str, name_resolver=None) -> Catalog:
    """
    Load a catalog of virtual products from a yaml document.
    """
    if name_resolver is None:
        name_resolver = DEFAULT_RESOLVER
    return Catalog(name_resolver, parse_yaml(catalog_body))