code: def local_canonical_file(path, diff_tool=None):
      with open("canonize", "a") as f:
          f.write(path)
          if diff_tool:
              f.write(
                  " "
                  + (
                      diff_tool
                      if isinstance(diff_tool, str)
                      else " ".join(diff_tool)
                  )
              )
          f.write("\n")
  
imports: import json
  import os
  from common_helpers import *
label_desc: Use image node_id 2 for calling a global function with example usage: local_canonical_file(path, diff_tool) without return types