class_docstr: A visitor that inspects the graph and removes redundant merge nodes.
  
  This visitor removes the redundant flatten and packed merge nodes added
  by the _PackMergeCombineVisitor and reconstructs the descendants of the
  removed nodes with the final flatten and packed merge node.
class_docstr_tok: ["A","visitor","that","inspects","the","graph","and","removes","redundant","merge","nodes",".","This","visitor","removes","the","redundant","flatten","and","packed","merge","nodes","added","by","the","_PackMergeCombineVisitor","and","reconstructs","the","descendants","of","the","removed","nodes","with","the","final","flatten","and","packed","merge","node","."]
code: def visit(self, operation_def, input_values):
      self.validate_operation_def(operation_def)
      if input_values and isinstance(
          operation_def, beam_nodes.CreateSavedModel
      ):
          # This will only be called once since this is a single phase analysis
          # graph and in that case only the final CreateSavedModel node has inputs.
          return self._remove_redundant_nodes(
              operation_def, input_values
          )
      return nodes.OperationNode(operation_def, input_values).outputs
  
imports: import collections
  import dataclasses
  from typing import Sequence
  from tensorflow_transform import analyzer_nodes
  from tensorflow_transform import nodes
  from tensorflow_transform.beam import beam_nodes
label_desc: Use image node_id 2 for calling the _RemoveRedundantPackedMergeCombineVisitor obj's underlying member method code with example usage: obj.visit(operation_def, input_values) and returns: nodes, self