code: def _flush(self):
          
          d = os.path.dirname(self.path)
          if not os.path.isdir(d):
              os.makedirs(d)
          with io.open(self.path, 'w', encoding='utf8') as f:
              yaml.safe_dump(self._data, f, default_flow_style=False, encoding=None)
docs: Save the contents of data to the file on disk. You should not need to call this manually.