code: def write(self, text):
      if self.logging:
          self.fout.writelines(text + "\n")
          self.fout.flush()
  
imports: import json
  import os
  from .None import constants
label_desc: Use image node_id 3 for calling the Logger obj's underlying member method code with example usage: obj.write(text) without return types