def load_config(path=None, defaults=None):

    if defaults is None:
        defaults = DEFAULT_FILES

    config = ConfigParser(allow_no_value=True)

    if defaults:
        config.read(defaults)

    if path:
        with open(path) as fh:
            config.read_file(fh)

    return config
Loads and parses an INI style configuration file using Python's built-in
dataset/ETHPy150Open GaretJax/lancet/lancet/settings.py/load_config