code: def yaml(
          self,
          filepath=None
      ):
          
          self.log.debug('starting the ``yaml`` method')
  
          dataCopy = []
          dataCopy[:] = [dict(l) for l in self.listOfDictionaries]
          renderedData = yaml.dump(dataCopy, default_flow_style=False)
  
          if filepath and len(self.listOfDictionaries):
  
              # RECURSIVELY CREATE MISSING DIRECTORIES
              if not os.path.exists(os.path.dirname(filepath)):
                  os.makedirs(os.path.dirname(filepath))
  
              stream = file(filepath, 'w')
              yaml.dump(dataCopy, stream, default_flow_style=False)
              stream.close()
  
          self.log.debug('completed the ``yaml`` method')
          return renderedData
docs: *Render the data in yaml format*
  
          **Key Arguments:**
              - ``filepath`` -- path to the file to write the yaml content to. Default *None*
  
          **Return:**
              - ``renderedData`` -- the data rendered as yaml
  
          **Usage:**
  
              To render the data set as yaml:
  
              .. code-block:: python
  
                  print dataSet.yaml()
  
              .. code-block:: yaml
  
                  - address: belfast, uk
                    owner: daisy
                    pet: dog
                  - address: the moon
                    owner: john
                    pet: snake
                  - address: larne
                    owner: susan
                    pet: crocodile
  
              and to save the yaml rendering to file:
  
              .. code-block:: python
  
                  dataSet.json("/path/to/myfile.yaml")