code: def testShowCommandListOps(self):
      base_path = test.test_src_dir_path(SAVED_MODEL_PATH)
  
      saved_model_cli.flags.FLAGS.unparse_flags()
      saved_model_cli.flags.FLAGS(
          [
              "saved_model_cli",
              "show",
              "--dir",
              base_path,
              "--tag_set",
              "serve",
              "--list_ops",
          ]
      )
      parser = saved_model_cli.create_parser()
      parser.parse_args()
      with captured_output() as (out, err):
          saved_model_cli.show()
      output = out.getvalue().strip()
      self.assertIn(
          "The MetaGraph with tag set ['serve'] contains the following ops:",
          output,
      )
      self.assertIn("'VariableV2'", output)
      self.assertIn("'Add'", output)
      self.assertIn("'RestoreV2'", output)
      self.assertIn("'ShardedFilename'", output)
      self.assertIn("'Placeholder'", output)
      self.assertIn("'Mul'", output)
      self.assertIn("'Pack'", output)
      self.assertIn("'Reshape'", output)
      self.assertIn("'SaveV2'", output)
      self.assertIn("'Const'", output)
      self.assertIn("'Identity'", output)
      self.assertIn("'Assign'", output)
      self.assertIn("'ParseExample'", output)
      self.assertIn("'StringJoin'", output)
      self.assertIn("'MergeV2Checkpoints'", output)
      self.assertIn("'NoOp'", output)
      self.assertEqual(err.getvalue().strip(), "")
  
imports: import contextlib
  import io
  import os
  import pickle
  import platform
  import shutil
  import sys
  from absl.testing import parameterized
  import numpy
  from tensorflow.core.example import example_pb2
  from tensorflow.core.framework import types_pb2
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.python.debug.wrappers import local_cli_wrapper
  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.lib.io import file_io
  from tensorflow.python.ops import parsing_config
  from tensorflow.python.ops import parsing_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.saved_model import save
  from tensorflow.python.tools import saved_model_cli
  from tensorflow.python.trackable import autotrackable
label_desc: Use image node_id 9 for calling the SavedModelCLITestCase obj's underlying member method code with example usage: obj.testShowCommandListOps() without return types