import yaml


def load_config(path="config/default.ymal") -> dict:
    """
    Load and parses a YAML configuration file

    :param path: path to YAML configuration file
    :return: configuration dictionary
    """
    with open(path, 'r') as ymlfile:
        cfg = yaml.safe_load(ymlfile)
    return cfg