class_docstr: Base test class for TensorFlow Lite 2.x model tests.
class_docstr_tok: ["Base","test","class","for","TensorFlow","Lite","2.x","model","tests","."]
docstr: Verify the DebugInfo is valid.
docstr_tok: ["Verify","the","DebugInfo","is","valid","."]
code: def _assertValidDebugInfo(self, debug_info):
      """Verify the DebugInfo is valid."""
      file_names = set()
      for file_path in debug_info.files:
          file_names.add(os.path.basename(file_path))
      # To make the test independent on how the nodes are created, we only assert
      # the name of this test file.
      self.assertIn("lite_v2_test.py", file_names)
      self.assertNotIn("lite_test.py", file_names)
  
imports: import os
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow.lite.python.interpreter import Interpreter
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor_spec
  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 variables
  from tensorflow.python.trackable import autotrackable
label_desc: Use image node_id 9 for calling the ModelTest obj's underlying member method code with example usage: obj._assertValidDebugInfo(debug_info) without return types