docstr: Verify that all the tensors have input and output ops except the tensors have buffer data.
docstr_tok: ["Verify","that","all","the","tensors","have","input","and","output","ops","except","the","tensors","have","buffer","data","."]
code: def _verify_tensor_connections(self, flatbuffer_model):
      """Verify that all the tensors have input and output ops except the tensors have buffer data."""
      tflite_subgraph = flatbuffer_model.subgraphs[0]
      tensors = tflite_subgraph.tensors
      buffers = flatbuffer_model.buffers
      tensors_used_as_inputs = set()
      tensors_used_as_outputs = set()
      for op in tflite_subgraph.operators:
          tensors_used_as_inputs.update(
              idx
              for idx in op.inputs
              if buffers[tensors[idx].buffer].data is None
          )
          tensors_used_as_outputs.update(idx for idx in op.outputs)
  
      tensors_used_as_inputs.update(
          idx for idx in tflite_subgraph.outputs
      )
      tensors_used_as_outputs.update(
          idx for idx in tflite_subgraph.inputs
      )
  
      self.assertEqual(tensors_used_as_inputs, tensors_used_as_outputs)
  
imports: import os
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow.lite.python import util
  from tensorflow.lite.tools.flatbuffer_utils import read_model
  from tensorflow.python.client import session
  from tensorflow.python.framework import convert_to_constants
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import while_loop
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the UtilModifyIntegerQuantizedConcatResidualModelIOTypeTest obj's underlying member method code with example usage: obj._verify_tensor_connections(flatbuffer_model) without return types