class_docstr: Generic class used to write log files.
class_docstr_tok: ["Generic","class","used","to","write","log","files","."]
code: def get_write_mode(self) -> str:
      # Append if file exists otherwise create the file
      return "a" if os.path.exists(self.file_path) else "w+"
  
file_path: lazycluster/src/lazycluster/utils.py
imports: import logging
  import os
  import time
label_desc: Use image node_id 4 for calling the ExecutionFileLogUtil obj's underlying member method code with example usage: obj.get_write_mode() and returns: unknown