original_docstring: Replaces a node. ptr is of the form used on the access path stack
      (parent, attrname, listidx|None)
      
docstring: Replaces a node. ptr is of the form used on the access path stack
  (parent, attrname, listidx|None)
docstring_tokens: Replaces a node . ptr is of the form used on the access path stack ( parent attrname listidx|None )
code: def replace_node(ptr, value):
      """Replaces a node. ptr is of the form used on the access path stack
      (parent, attrname, listidx|None)
      """
      parent, attrname, listidx = ptr
      if listidx is None:
          setattr(parent, attrname, value)
      else:
          getattr(parent, attrname)[listidx] = value
code_tokens: def replace_node ( ptr , value ) : parent , attrname , listidx = ptr if listidx is None : setattr ( parent , attrname , value ) else : getattr ( parent , attrname ) [ listidx ] = value
short_docstring: Replaces a node.
short_docstring_tokens: Replaces a node .
comment: """Replaces a node. ptr is of the form used on the access path stack
      (parent, attrname, listidx|None)
      """