code: def trace(trace_obj):
      
      if pyhdb.tracing:
          t = TraceLogger()
          tr = t.trace(trace_obj)
          print(tr)
          return tr
docs: Print recursive trace of given network protocol object
      :param trace_obj: either a message, segement, or kind object