code: def pbtxt_to_pb(filename):
      assert filename.suffix == ".pbtxt"
      with filename.open("r") as f:
          graph_def = tf.GraphDef()
  
          file_content = f.read()
          text_format.Merge(file_content, graph_def)
  
          tf.import_graph_def(graph_def, name="")
          tf.train.write_graph(
              graph_def, dump_dir, "graph.pb", as_text=False
          )
  
file_path: delta/egs/conll2003/seq_label/v1/utils/pb_pbtxt.py
imports: from absl import flags
  from absl import app
  from absl import logging
  from pathlib import Path
  import delta.compat
  from google.protobuf import text_format
  from tensorflow.python.platform import gfile
label_desc: Use image node_id 1 for calling a global function with example usage: pbtxt_to_pb(filename) without return types