def yaml_parse(yamlstr):
try:<EOL><INDENT>return json.loads(yamlstr)<EOL><DEDENT>except ValueError:<EOL><INDENT>yaml.SafeLoader.add_multi_constructor("<STR_LIT:!>", intrinsics_multi_constructor)<EOL>return yaml.safe_load(yamlstr)<EOL><DEDENT>
Parse a yaml string