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):
      """
      Method to write using data as dictionary. e.g.: user: {item : score}
  
      """
  
      with open(self.output_file, self.mode) as infile:
          for user in self.data:
              for pair in self.data[user]:
                  infile.write(
                      "%d%s%d%s%f\n"
                      % (user, self.sep, pair[0], self.sep, pair[1])
                  )
  
file_path: CaseRecommender/caserec/utils/process_data.py
imports: import pandas
  from caserec.utils.extra_functions import check_error_file
label_desc: Use image node_id 3 for calling the WriteFile obj's underlying member method code with example usage: obj.write_with_dict() without return types