import yaml


def load_yaml_as_dict(path) -> dict:
    """
    Read the content of a YAML file into a dictionary.

    Args:
        path: Path to a YAML file

    Returns:
        dictionary with the content of the YAML file
    """
    with open(path, 'r') as f:
        return yaml.load(f, Loader=yaml.FullLoader)