code: def testShowAllWithFunctions(self, get_ops_mock):
      class DummyModel(autotrackable.AutoTrackable):
          """Model with callable polymorphic functions specified."""
  
          @def_function.function
          def func1(self, a, b, c):
              if c:
                  return a + b
              else:
                  return a * b
  
          @def_function.function(
              input_signature=[
                  tensor_spec.TensorSpec(
                      shape=(2, 2), dtype=dtypes.float32
                  )
              ]
          )
          def func2(self, x):
              return x + 2
  
          @def_function.function
          def __call__(self, y, c=7):
              return y + 2 * c
  
      # Mocking _get_ops_in_metagraph because it returns a nondeterministically
      # ordered set of ops.
      get_ops_mock.return_value = {"Op1"}
      saved_model_dir = os.path.join(test.get_temp_dir(), "dummy_model")
      dummy_model = DummyModel()
      # Call with specific values to create new polymorphic function traces.
      dummy_model.func1(
          constant_op.constant(5), constant_op.constant(9), True
      )
      dummy_model(constant_op.constant(5))
      with self.cached_session():
          save.save(dummy_model, saved_model_dir)
  
      exp_out = """MetaGraphDef with tag-set: 'serve' contains the following SignatureDefs:
  
  signature_def['__saved_model_init_op']:
    The given SavedModel SignatureDef contains the following input(s):
    The given SavedModel SignatureDef contains the following output(s):
      outputs['__saved_model_init_op'] tensor_info:
          dtype: DT_INVALID
          shape: unknown_rank
          name: NoOp
    Method name is: 
  
  signature_def['serving_default']:
    The given SavedModel SignatureDef contains the following input(s):
      inputs['x'] tensor_info:
          dtype: DT_FLOAT
          shape: (2, 2)
          name: serving_default_x:0
    The given SavedModel SignatureDef contains the following output(s):
      outputs['output_0'] tensor_info:
          dtype: DT_FLOAT
          shape: (2, 2)
          name: PartitionedCall:0
    Method name is: tensorflow/serving/predict
  The MetaGraph with tag set ['serve'] contains the following ops: {'Op1'}
  
  Concrete Functions:
    Function Name: '__call__'
      Option #1
        Callable with:
          Argument #1
            y: TensorSpec(shape=(), dtype=tf.int32, name='y')
          Argument #2
            DType: int
            Value: 7
  
    Function Name: 'func1'
      Option #1
        Callable with:
          Argument #1
            a: TensorSpec(shape=(), dtype=tf.int32, name='a')
          Argument #2
            b: TensorSpec(shape=(), dtype=tf.int32, name='b')
          Argument #3
            DType: bool
            Value: True
  
    Function Name: 'func2'
      Option #1
        Callable with:
          Argument #1
            x: TensorSpec(shape=(2, 2), dtype=tf.float32, name='x')
  """.strip()  # pylint: enable=line-too-long
  
      saved_model_cli.flags.FLAGS.unparse_flags()
      saved_model_cli.flags.FLAGS(
          ["saved_model_cli", "show", "--dir", saved_model_dir, "--all"]
      )
      parser = saved_model_cli.create_parser()
      parser.parse_args()
      with captured_output() as (out, err):
          saved_model_cli.show()
      output = out.getvalue().strip()
      self.maxDiff = (
          None  # Produce a useful error msg if the comparison fails
      )
      self.assertMultiLineEqual(output, exp_out)
      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 3 for calling the SavedModelCLITestCase obj's underlying member method code with example usage: obj.testShowAllWithFunctions(get_ops_mock) and returns: unknown, unknown, unknown, unknown