class_docstr: CoreML internal representation of a torch IR block.
  
  Arguments:
      raw_block: The torch._C.Block to convert, or None.
      parent: The InternalTorchIRNode this block belongs to.
      nodes: If @raw_block is None, the list of InternalTorchIRNodes in the block
      inputs: If @raw_block is None, the list of input symbols.
      outputs: If @raw_block is None, the list of output symbols.
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 graph inputs/outputs
      _replace_in_list(self.inputs, old_name, new_name)
      _replace_in_list(self.outputs, old_name, new_name)
  
      for node in self.nodes:
          node.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 InternalTorchIRBlock obj's underlying member method code with example usage: obj.replace_name(old_name, new_name) without return types