code: def __init__(self, value, fun, args, kwargs, parent_argnums, parents):
      self.varname_generator = parents[0].varname_generator
      self.varname = next(self.varname_generator)
      args_or_vars = list(args)
      for argnum, parent in zip(parent_argnums, parents):
          args_or_vars[argnum] = parent.varname
      print(
          "{} = {}({}) = {}".format(
              self.varname,
              fun.__name__,
              ",".join(map(str, args_or_vars)),
              value,
          )
      )
  
file_path: autograd/examples/print_trace.py
imports: from __future__ import print_function
  import autograd.numpy
  from autograd.tracer import trace, Node
  from autograd import grad
label_desc: Use image node_id 1 to create a new PrintNode object from inherited base classes: Node with example: obj = PrintNode(value, fun, args, kwargs, parent_argnums, parents)