code: def apply(self, graph):
      # Copy the graph. Don't change the original.
      graph = copy.deepcopy(graph)
  
      for node in graph.nodes.values():
          if self.op:
              node.op = self.op.sub(self.to, node.op)
          # TODO: name is not tested yet
          if self.name:
              node.name = self.name.sub(self.to, node.name)
      return graph
  
imports: import re
  import copy
  from .graph import Node
  from .None import ge
label_desc: Use image node_id 2 for calling the Rename obj's underlying member method code with example usage: obj.apply(graph) and returns: graph