code: def __init__(self, op, offsets):
      super(SegmentReduce, self).__init__()
      self.op = op
      self.offsets = offsets
  
imports: import mxnet
  import numpy
  from mxnet import nd
  from ..._sparse_ops import _bwd_segment_cmp, _csrmask, _csrmm, _csrsum, _gsddmm, _gspmm, _scatter_add, _segment_reduce
  from ...base import ALL, dgl_warning, is_all
  from ...heterograph_index import create_unitgraph_from_csr
  from .tensor import asnumpy, context, copy_to, to_backend_ctx, zerocopy_from_numpy
label_desc: Use image node_id 1 to create a new SegmentReduce object from inherited base classes: mx.autograd with example: obj = SegmentReduce(op, offsets)