def yaml_config_reader(config_path):
if not config_path.endswith("<STR_LIT>"):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>with open(config_path, '<STR_LIT:r>') as f:<EOL><INDENT>config = yaml.load(f)<EOL><DEDENT>return config<EOL>
Reads yaml config file and returns auto-typed config_dict