import yaml def read_yaml(config_path): """ Read YAML file. :param config_path: path to the YAML config file. :type config_path: str :return: dictionary correspondent to YAML content :rtype dict """ with open(config_path, 'r') as f: config = yaml.safe_load(f) return config