parameters: (self, oldNodeVal: NodeValue, newNodeVal: NodeValue)
docstring: Replace one operand with another one.
  
          Args:
              oldNode: Node. Old operand node.
              oldResNo: int. Old operand result number.
              newNode: Node. New operand node.
              newResNo: int. New operand result number.
docstring_summary: Replace one operand with another one.
docstring_tokens: Replace one operand with another one .
function: def replace_input(self, oldNodeVal: NodeValue, newNodeVal: NodeValue) -> None:
          """Replace one operand with another one.
  
          Args:
              oldNode: Node. Old operand node.
              oldResNo: int. Old operand result number.
              newNode: Node. New operand node.
              newResNo: int. New operand result number.
          """
  
          try:
              self.inputs_.remove(oldNodeVal)
          except ValueError:
              print("Removed input value must already exist in the node's input list. ")
          self.inputs_.append(newNodeVal)
function_tokens: def replace_input ( self , oldNodeVal : NodeValue , newNodeVal : NodeValue ) -> None : try : self . inputs_ . remove ( oldNodeVal ) except ValueError : print ( "Removed input value must already exist in the node's input list. " ) self . inputs_ . append ( newNodeVal )