import yaml def parse_config(path): with open(path, "r", encoding="utf-8") as f: config = yaml.safe_load(f) return config