code: def dump_dict_as_txt(d, filename):
      with open(filename, "w", encoding="utf-8") as wt:
          wt.write("{0}\n".format(len(d)))
          for k, v in d.items():
              wt.write("{0}\t{1}\n".format(k, v))
  
file_path: recommenders/examples/07_tutorials/KDD2020-tutorial/utils/general.py
imports: import os
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: dump_dict_as_txt(d, filename) without return types