code: def trace_inspect(self):
          
          def decorator(f):
              self.tracer.inspector = f
              return f
          return decorator
docs: A decorator that allows to inspect/change the trace data.