code: def WritePreprocessingInformation(self, knowledge_base):
      
      self._RaiseIfNotWritable()
  
      if self._storage_type != definitions.STORAGE_TYPE_SESSION:
        raise IOError('Preprocessing information not supported by storage type.')
docs: Writes preprocessing information.
  
      Args:
        knowledge_base (KnowledgeBase): used to store the preprocessing
            information.
  
      Raises:
        IOError: if the storage type does not support writing preprocessing
            information or when the storage writer is closed.
        OSError: if the storage type does not support writing preprocessing
            information or when the storage writer is closed.