code: def read_yaml (self, encoding=None, errors=None, newline=None, **kwargs):
          
          import yaml
  
          with self.open (mode='rt', encoding=encoding, errors=errors, newline=newline) as f:
              return yaml.load (f, **kwargs)
docs: Read this path as a YAML document.
  
          The YAML parsing is done with the :mod:`yaml` module. The *encoding*,
          *errors*, and *newline* keywords are passed to :meth:`open`. The
          remaining *kwargs* are passed to :meth:`yaml.load`.
  
          Returns the decoded data structure.