code: def write(self):
          
          if self._path is None:
              raise ValueError("Instance was not initialized with a path, use to_file(...) instead")
          # END assert path
          self.to_file(self._path)
          return self
docs: Write this instance's data to the file we are originating from
          :return: self