code: def DoLog(fsm):
      screen = fsm.memory[0]
      fsm.memory = [screen]
      fout = open("log", "a")
      fout.write(fsm.input_symbol + "," + fsm.current_state + "\n")
      fout.close()
  
imports: from .None import screen
  from .None import FSM
  import string
label_desc: Use image node_id 24 for calling a global function with example usage: DoLog(fsm) without return types