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 _get_to_be_created_tensor_bindings_info(self, input_values):
      result = []
      for value in input_values:
          intermidiate_post_processing_op_defs = []
          intermidiate_value = value
          output_index = None
          while self._is_packed_post_processing_node(
              intermidiate_value
          ):
              intermidiate_op_def = (
                  intermidiate_value.parent_operation.operation_def
              )
              intermidiate_post_processing_op_defs.append(
                  intermidiate_op_def
              )
              if isinstance(
                  intermidiate_op_def,
                  analyzer_nodes.ExtractPackedCombineMergeOutputs,
              ):
                  assert output_index is None
                  output_index = intermidiate_value.value_index
              intermidiate_value = (
                  intermidiate_value.parent_operation.inputs[0]
              )
  
          # If the input is not generated from the final packed merge node, keep
          # track of the node for reconstruction of the other inputs.
          if (
              intermidiate_value.parent_operation.operation_def.label
              != self._final_packed_merge_combine_label
          ):
              # Store the info needed to reconstruct the input node, including
              # CreateTensorBinding node's input value index.
              result.append(
                  _TensorBindingInfo(
                      intermidiate_post_processing_op_defs, output_index
                  )
              )
      return result
  
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 7 for calling the _RemoveRedundantPackedMergeCombineVisitor obj's underlying member method code with example usage: obj._get_to_be_created_tensor_bindings_info(input_values) and returns: result