docstr: Method to write using data as dictionary. e.g.: user: {item : score}
docstr_tok: ["Method","to","write","using","data","as","dictionary",".","e.g",".",":","user",":","{","item",":","score","}"]
code: def write_with_dict(self, write_file, dict_data):
      """
      Method to write using data as dictionary. e.g.: user: {item : score}
  
      """
  
      with open(write_file, "w") as infile:
          for user in dict_data:
              for pair in dict_data[user]:
                  infile.write(
                      "%d%s%d%s%f\n"
                      % (
                          user,
                          self.sep,
                          pair,
                          self.sep,
                          dict_data[user][pair],
                      )
                  )
  
imports: from multiprocessing.pool import Pool
  from random import shuffle
  import numpy
  import os
  from caserec.recommenders.rating_prediction.itemknn import ItemKNN
  from caserec.recommenders.rating_prediction.matrixfactorization import MatrixFactorization
  from caserec.recommenders.rating_prediction.svdplusplus import SVDPlusPlus
  from caserec.recommenders.rating_prediction.userknn import UserKNN
  from caserec.utils.process_data import ReadFile
  from caserec.utils.extra_functions import ComputeBui
label_desc: Use image node_id 13 for calling the ECoRec obj's underlying member method code with example usage: obj.write_with_dict(write_file, dict_data) without return types