import yaml


def load_yaml(fname: str) -> dict:
    """generic safe_load wrapper for yaml archive"""
    # NOTE: error handeling is done via logger
    with open(fname, 'r') as f:
        dataMap = yaml.safe_load(f)

    return dataMap