code: def pb_to_pbtxt(filename):
      assert filename.suffix == ".pb"
      with filename.open("rb") as f:
          graph_def = tf.GraphDef()
          graph_def.ParseFromString(f.read())
  
          tf.import_graph_def(graph_def, name="")
          tf.train.write_graph(
              graph_def, dump_dir, "graph.pbtxt", as_text=True
          )
      return
  
file_path: delta/egs/snli/match/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 2 for calling a global function with example usage: pb_to_pbtxt(filename) without return types