code: def save_back(self, pb_file_name):
      gdef = tf.compat.v1.GraphDef()
      gdef.CopyFrom(self.graph_def)
      del gdef.node[:]
      gdef.node.extend([op.node for op in self.op_dict.values()])
      with tf.io.gfile.GFile(pb_file_name, "wb") as f:
          f.write(gdef.SerializeToString())
  
imports: import numpy
  import tensorflow.compat.v1
  from tensorflow.core.framework.tensor_pb2 import TensorProto
  from tensorflow.core.framework.tensor_shape_pb2 import TensorShapeProto
label_desc: Use image node_id 17 for calling the RefineGraph obj's underlying member method code with example usage: obj.save_back(pb_file_name) without return types