def load_config(path):
with path.open('<STR_LIT:rb>') as fi:<EOL><INDENT>file_bytes = fi.read()<EOL>config = yaml.load(file_bytes.decode('<STR_LIT:utf-8>'))<EOL><DEDENT>return config<EOL>
Loads a yaml configuration.

:param path: a pathlib Path object pointing to the configuration