code: def canonize(self, filename):
      if not os.path.isabs(filename):
          try:
              pwd = os.getcwd()
          except OSError:
              pass
          else:
              filename = os.path.join(pwd, filename)
      return os.path.normpath(filename)
  
file_path: cpython/Lib/idlelib/filelist.py
imports: import os
  from tkinter import messagebox
label_desc: Use image node_id 8 for calling the FileList obj's underlying member method code with example usage: obj.canonize(filename) and returns: os