import yaml


def load_yaml(filename):
    """
    Load a YAML file.

    Parameters
    ----------
    filename : str
        The name of the file to load

    Returns
    -------
    dict
        The contents of the file.

    """
    with open(filename) as file:
        return yaml.load(file, Loader=yaml.FullLoader)