def METHOD_NAME(recipe: str, name_resolver=None) -> VirtualProduct:
    """
    Create a virtual product from a yaml recipe.
    """
    if name_resolver is None:
        name_resolver = DEFAULT_RESOLVER
    return construct(name_resolver=name_resolver, **parse_yaml(recipe))