code: def load_config(path):
     
     with path.open('rb') as fi:
         file_bytes = fi.read()
         config = yaml.load(file_bytes.decode('utf-8'))
  
     return config
docs: Loads a yaml configuration.
  
     :param path: a pathlib Path object pointing to the configuration