class_docstr: CoreML internal representation of a torch IR node.
  Can construct itself from a provided torchIR node or manually constructed with
  args for testing.
  
  See InternalTorchIRGraph for the motivation behind this structure.
  
      Arguments:
          node: The torch._C.Node to convert, or None.
          parent: The InternalTorchIRGraph/Block this node belongs to.
          attr: If @node is not specified, the dict of named attributes.
          inputs: If @node is not specified, the list of input symbols.
          outputs: If @node is not specified, the list of output symbols.
          kind: If @node is not specified, the kind (op) of the node.
          blocks: If @node is not specified, the list of InternalTorchIRBlock.
docstr: Replaces all instances of @old_name with @new_name in @self.
docstr_tok: ["Replaces","all","instances","of","@","old_name","with","@","new_name","in","@","self","."]
code: def replace_name(self, old_name, new_name):
      """Replaces all instances of @old_name with @new_name in @self."""
  
      _replace_in_list(self.inputs, old_name, new_name)
      _replace_in_list(self.outputs, old_name, new_name)
  
      if self.name == old_name:
          self.name = new_name
      for block in self.blocks:
          block.replace_name(old_name, new_name)
  
imports: from collections import OrderedDict
  from itertools import islice
  import torch
label_desc: Use image node_id 4 for calling the InternalTorchIRNode obj's underlying member method code with example usage: obj.replace_name(old_name, new_name) without return types