code: def testFlatbufferToDict(self):
      model = test_utils.build_mock_flatbuffer_model()
      model_dict = visualize.CreateDictFromFlatbuffer(model)
      self.assertEqual(
          test_utils.TFLITE_SCHEMA_VERSION, model_dict["version"]
      )
      self.assertEqual(1, len(model_dict["subgraphs"]))
      self.assertEqual(2, len(model_dict["operator_codes"]))
      self.assertEqual(3, len(model_dict["buffers"]))
      self.assertEqual(3, len(model_dict["subgraphs"][0]["tensors"]))
      self.assertEqual(
          0, model_dict["subgraphs"][0]["tensors"][0]["buffer"]
      )
  
file_path: tensorflow/tensorflow/lite/tools/visualize_test.py
imports: import os
  import re
  from tensorflow.lite.tools import test_utils
  from tensorflow.lite.tools import visualize
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import test
label_desc: Use image node_id 3 for calling the VisualizeTest obj's underlying member method code with example usage: obj.testFlatbufferToDict() without return types