code: def localtrace_trace(self, frame, why, arg):
      if why == "line":
          # record the file name and line number of every trace
          filename = frame.f_code.co_filename
          lineno = frame.f_lineno
  
          if self.start_time:
              print("%.2f" % (_time() - self.start_time), end=" ")
          bname = os.path.basename(filename)
          print(
              "%s(%d): %s"
              % (bname, lineno, linecache.getline(filename, lineno)),
              end="",
          )
      return self.localtrace
  
imports: import io
  import linecache
  import os
  import sys
  import sysconfig
  import token
  import tokenize
  import inspect
  import gc
  import dis
  import pickle
  from time import monotonic
  import threading
label_desc: Use image node_id 10 for calling the Trace obj's underlying member method code with example usage: obj.localtrace_trace(frame, why, arg) and returns: self