code: def get_sparse_edge_info(self, u, v, num_nodes):
      self._degree = paddle.zeros(shape=[num_nodes], dtype="int64")
      self._degree = paddle.scatter(
          x=self._degree,
          overwrite=False,
          index=u,
          updates=paddle.ones_like(u, dtype="int64"),
      )
      self._sorted_eid = paddle.argsort(u)
      self._sorted_u = paddle.gather(u, self._sorted_eid)
      self._sorted_v = paddle.gather(v, self._sorted_eid)
      self._indptr = paddle.concat(
          [
              paddle.zeros(
                  shape=[
                      1,
                  ],
                  dtype=self._degree.dtype,
              ),
              paddle.cumsum(self._degree),
          ],
          axis=-1,
      )
  
file_path: PGL/examples/gnn_depoly/models/base_conv.py
imports: import pdb
  import paddle
  import paddle.nn
  from pgl.utils import op
  from pgl.message import Message
  from pgl.utils.helper import unique_segment
label_desc: Use image node_id 6 for calling the BaseConv obj's underlying member method code with example usage: obj.get_sparse_edge_info(u, v, num_nodes) without return types