import yaml


def load_yaml(filename):
    """ Load yaml from file.
    Args:
        filename (str): The filename to load.
    Returns:
        d (dict): The loaded yaml dictionary.
    """
    with open(filename, 'r') as f:
        d = yaml.safe_load(f)
    return d