import yaml


def deserialize(config_file):
    """Load settings from a YAML configuration file.

    Returns
    -------
    dict
      Configuration settings in a dict.

    """
    with open(config_file, "r") as fp:
        return yaml.safe_load(fp)