code: def dump(self, path=None):
      dump_tag = self.args.dump_tag
      if dump_tag == "SERVING":
          tag_list = [tf.saved_model.tag_constants.SERVING]
      else:
          tag_list = [tf.saved_model.tag_constants.TRAINING]
  
      if path is None:
          path = self.args.dump
      with tf.Session() as sess:
          sess.run(tf.global_variables_initializer())
  
          builder = tf.saved_model.builder.SavedModelBuilder(path)
  
          tensor_info_input = tf.saved_model.utils.build_tensor_info(
              self.input
          )
          tensor_info_output = tf.saved_model.utils.build_tensor_info(
              self.model
          )
  
          prediction_signature = tf.saved_model.signature_def_utils.build_signature_def(
              inputs={"input": tensor_info_input},
              outputs={"output": tensor_info_output},
              method_name=tf.saved_model.signature_constants.PREDICT_METHOD_NAME,
          )
  
          builder.add_meta_graph_and_variables(
              sess,
              tag_list,
              signature_def_map={
                  tf.saved_model.signature_constants.DEFAULT_SERVING_SIGNATURE_DEF_KEY: prediction_signature
              },
          )
  
          save_path = builder.save()
  
          print(
              "Tensorflow file is saved as [{}], generated by [{}.py] and [{}].".format(
                  save_path, self.args.n, self.args.w
              )
          )
  
file_path: MMdnn/mmdnn/conversion/examples/tensorflow/imagenet_test.py
imports: import argparse
  import numpy
  import sys
  import os
  import tensorflow
  from mmdnn.conversion.examples.imagenet_test import TestKit
label_desc: Use image node_id 6 for calling the TestTF obj's underlying member method code with example usage: obj.dump(path) without return types