def parse_exchange_yaml_file(path, f, default_compartment):
return parse_exchange(yaml_load(f), default_compartment)<EOL>
Parse a file as a YAML-format exchange definition.

    Path can be given as a string or a context.