code: def load_yaml(filename):
      
      try:
          with open(filename, 'rb') as f:
              return yaml.load(f, Loader=Loader)
      except (IOError, yaml.error.YAMLError) as exc:
          raise ConfigReadError(filename, exc)
docs: Read a YAML document from a file. If the file cannot be read or
      parsed, a ConfigReadError is raised.