code: def testTxtWithoutInput(self):
      @tf.function()
      def func():
          return tf.cos(1.0)
  
      converter = tf.lite.TFLiteConverter.from_concrete_functions(
          [func.get_concrete_function()], func
      )
      fb_model = converter.convert()
      mock_stdout = io.StringIO()
      with test.mock.patch.object(sys, "stdout", mock_stdout):
          analyzer.ModelAnalyzer.analyze(model_content=fb_model)
      txt = mock_stdout.getvalue()
      self.assertIn("Subgraph#0 main() -> [T#0]", 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 9 for calling the AnalyzerTest obj's underlying member method code with example usage: obj.testTxtWithoutInput() and returns: tf