docstr: Method to write using data as list. e.g.: [user, item, score]
docstr_tok: ["Method","to","write","using","data","as","list",".","e.g",".",":","[","user",",","item",",","score","]"]
code: def write(self):
      """
      Method to write using data as list. e.g.: [user, item, score]
  
      """
  
      with open(self.output_file, self.mode) as infile:
          for triple in self.data:
              if self.as_binary:
                  infile.write(
                      "%d%s%d%s%f\n"
                      % (triple[0], self.sep, triple[1], self.sep, 1.0)
                  )
              else:
                  infile.write(
                      "%d%s%d%s%f\n"
                      % (
                          triple[0],
                          self.sep,
                          triple[1],
                          self.sep,
                          triple[2],
                      )
                  )
  
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 2 for calling the WriteFile obj's underlying member method code with example usage: obj.write() without return types