code: def _remove_node(self, op):
      for prev_op in op.inputs[:]:
          if prev_op.const:
              op.inputs.remove(prev_op)
              self.decrease_refcount(prev_op)
          else:
              prev_op.outputs.remove(op)
              prev_op.outputs.extend(op.outputs)
              for next_op in op.outputs:
                  next_op.node.input[
                      list(next_op.node.input).index(op.node.name)
                  ] = prev_op.node.name
  
      for next_op in op.outputs:
          next_op.inputs.remove(op)
          next_op.inputs.extend(op.inputs)
  
      del self.op_dict[op.node.name]
  
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 21 for calling the RefineGraph obj's underlying member method code with example usage: obj._remove_node(op) without return types