code: def testTxt(self):
      model_path = resource_loader.get_path_to_datafile(
          "../testdata/add.bin"
      )
      mock_stdout = io.StringIO()
      with test.mock.patch.object(sys, "stdout", mock_stdout):
          analyzer.ModelAnalyzer.analyze(model_path=model_path)
      txt = mock_stdout.getvalue()
      self.assertIn("Subgraph#0(T#1) -> [T#2]", txt)
      self.assertIn("Op#0 ADD(T#1, T#1) -> [T#0]", txt)
      self.assertIn("Op#1 ADD(T#0, T#1) -> [T#2]", txt)
      self.assertNotIn(
          "Your model looks compatible with GPU delegate", txt
      )
  
imports: import io
  import sys
  import tempfile
  import tensorflow
  from tensorflow.lite.python import analyzer
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import resource_loader
  from tensorflow.python.platform import test
  from tensorflow.python.trackable import autotrackable
label_desc: Use image node_id 1 for calling the AnalyzerTest obj's underlying member method code with example usage: obj.testTxt() without return types