class_docstr: coremltools internal representation of a torch IR block.
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
  import torch
  from torch.fx.node import Node
  from coremltools import _logger
  from .edgeir_utils import extract_inputs_from_edge_program
  from .torchscript_utils import _expand_and_optimize_ir
label_desc: Use image node_id 6 for calling the InternalTorchIRBlock obj's underlying member method code with example usage: obj.replace_name(old_name, new_name) without return types