code: def save(self, model_path):
      with open(
          os.path.join(model_path, self.WORD_2_IDF_FILE_NAME),
          "w",
          encoding="utf-8",
      ) as f:
          for w, s in self.w2idf.items():
              f.write(str(w) + " " + str(s) + "\n")
  
      with open(
          os.path.join(model_path, self.WORD_2_TFIDF_FILE_NAME),
          "w",
          encoding="utf-8",
      ) as f:
          for w, s in self.w2tfidf.items():
              f.write(str(w) + " " + str(s) + "\n")
  
file_path: nlpaug/nlpaug/model/word_stats/tfidf.py
imports: import os
  import math
  import numpy
  from nlpaug.model.word_stats import WordStatistics
label_desc: Use image node_id 6 for calling the TfIdf obj's underlying member method code with example usage: obj.save(model_path) without return types