code: def save_facts(self, path, mode=SaveMode.LOCAL_SAVE):
          
          ret = lib.EnvSaveFacts(self._env, path.encode(), mode)
          if ret == -1:
              raise CLIPSError(self._env)
  
          return ret
docs: Save the facts in the system to the specified file.
  
          The Python equivalent of the CLIPS save-facts command.