docstr: Class to write predictions and information
  
  :param output_file: File with dir to write the information
  :type output_file: str
  
  :param data: Data to be write
  :type data: list, dict, set
  
  :param sep: Delimiter for input files
  :type sep: str, default '       '
  
  :param mode: Method to write file
  :type mode: str, default 'w'
  
  :param as_binary: If True, write score equals 1
  :type as_binary: bool, default False
docstr_tok: ["Class","to","write","predictions","and","information",":","param","output_file",":","File","with","dir","to","write","the","information",":","type","output_file",":","str",":","param","data",":","Data","to","be","write",":","type","data",":","list",",","dict",",","set",":","param","sep",":","Delimiter","for","input","files",":","type","sep",":","str",",","default","'","'",":","param","mode",":","Method","to","write","file",":","type","mode",":","str",",","default","'","w'",":","param","as_binary",":","If","True",",","write","score","equals","1",":","type","as_binary",":","bool",",","default","False"]
code: def __init__(
      self, output_file, data=None, sep="\t", mode="w", as_binary=False
  ):
      """
      Class to write predictions and information
  
      :param output_file: File with dir to write the information
      :type output_file: str
  
      :param data: Data to be write
      :type data: list, dict, set
  
      :param sep: Delimiter for input files
      :type sep: str, default '\t'
  
      :param mode: Method to write file
      :type mode: str, default 'w'
  
      :param as_binary: If True, write score equals 1
      :type as_binary: bool, default False
  
      """
  
      self.output_file = output_file
      self.data = data
      self.sep = sep
      self.mode = mode
      self.as_binary = as_binary
  
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 1 to create a new WriteFile object from inherited base classes: object with example: obj = WriteFile(output_file, data, sep, mode, as_binary)