code: def _write_object(self, path, value):
      '''write out `object` to file at `path`'''
      ensure_directory_exists(os.path.dirname(path))
  
      with open(path, 'w') as f:
        f.write(valuef _write_object(self, path, value):
      '''write out `object` to file at `path`'''
      ensure_directory_exists(os.path.dirname(path))
  
      with open(path, 'w') as f:
        f.write(value)
docs: write out `object` to file at `path`