def load_config(opts):
    if 'config' in opts:
        try:
            with open(opts['config'], 'r') as f:
                config = yaml.load(f)
                return dict(config)
        except IOError:
            logger.error('Could not find config file at %s', yaml_name)
            sys.exit()
    else:
        return {}
dataset/ETHPy150Open embr/gcat/gcat/__init__.py/load_config/original