code: def connection_hook(self, con):
      self.numconnections += 1
      if self.options.report:
          con.setprofile(self.profiler)
      if self.options.sql or self.options.report:
          con.setexectrace(self.exectracer)
      if self.options.rows or self.options.report:
          con.setrowtrace(self.rowtracer)
      if self.options.sql:
          self.log(
              id(con),
              "OPEN:",
              self.formatstring(con.filename, checkmaxlen=False),
              con.open_vfs,
              self.flagme(
                  con.open_flags,
                  self.mapping_open_flags,
                  "SQLITE_OPEN_",
              ),
          )
  
imports: import time
  import sys
  import weakref
label_desc: Use image node_id 16 for calling the APSWTracer obj's underlying member method code with example usage: obj.connection_hook(con) without return types