code: def testTxtGpuCompatiblity(self):
      model_path = resource_loader.get_path_to_datafile(
          "../testdata/multi_add_flex.bin"
      )
      mock_stdout = io.StringIO()
      with test.mock.patch.object(sys, "stdout", mock_stdout):
          analyzer.ModelAnalyzer.analyze(
              model_path=model_path, gpu_compatibility=True
          )
      txt = mock_stdout.getvalue()
      self.assertIn(
          "GPU COMPATIBILITY WARNING: Not supported custom op FlexAddV2",
          txt,
      )
      self.assertIn(
          "GPU COMPATIBILITY WARNING: Subgraph#0 has GPU delegate compatibility "
          "issues at nodes 0, 1, 2",
          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 6 for calling the AnalyzerTest obj's underlying member method code with example usage: obj.testTxtGpuCompatiblity() without return types