code: def test_export_model(self):
      export_path_base = self.config["solver"]["service"]["model_path"]
      model_version = self.config["solver"]["service"]["model_version"]
      export_path = os.path.join(
          tf.compat.as_bytes(export_path_base),
          tf.compat.as_bytes(model_version),
      )
      export_path = os.path.abspath(export_path)
  
      if not os.path.exists(export_path):
          self.solver.export_model()
  
      old_paths = [
          "tools/cppjieba/dict/jieba.dict.utf8",
          "tools/cppjieba/dict/hmm_model.utf8",
          "tools/cppjieba/dict/idf.utf8",
          "tools/cppjieba/dict/stop_words.utf8",
          "tools/cppjieba/dict/user.dict.utf8",
      ]
      old_args = [str(self.main_root.joinpath(p)) for p in old_paths]
  
      edit_pb_txt(old_args, export_path.decode("utf-8"))
  
      graph = tf.Graph()
      with self.session(graph) as sess:
          tf.saved_model.loader.load(
              sess, [tf.saved_model.tag_constants.SERVING], export_path
          )
  
          input_sentence_tensor = graph.get_operation_by_name(
              "input_sentence"
          ).outputs[0]
  
          score_tensor = graph.get_operation_by_name("score").outputs[0]
  
          score = sess.run(
              score_tensor, feed_dict={input_sentence_tensor: ["你好呀北京"]}
          )
          logging.info("score: {}".format(score))
  
file_path: delta/egs/mock_text_seq_label_data/seq-label/v1/utils/replace_custom_op_attr_pbtxt_test.py
imports: import os
  import delta.compat
  from absl import logging
  from pathlib import Path
  from delta import utils
  from delta.layers.ops import py_x_ops
  from delta.utils.register import registers
  from utils.edit_pbtxt import edit_pb_txt
label_desc: Use image node_id 2 for calling the EditPbtxtTest obj's underlying member method code with example usage: obj.test_export_model() without return types