code: def export_graph_def(self):
      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()])
      return gdef
  
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 18 for calling the RefineGraph obj's underlying member method code with example usage: obj.export_graph_def() and returns: gdef