code: def writeSettings(self, file_obj, index=False):  # pragma: no cover
          
  
          pickle.dump(self.data_model, file_obj)
          pickle.dump(self.classifier, file_obj)
          pickle.dump(self.predicates, file_obj)
  
          if index:
              self._writeIndices(file_obj)
docs: Write a settings file containing the
          data model and predicates to a file object
  
          Keyword arguments:
          file_obj -- file object to write settings data into