code: def __init__(self, num, dim, weight_attr=None):
      self.num = num
      self.dim = dim
      self.emb_attr = weight_attr
  
file_path: PGL/examples/metapath2vec/model.py
imports: import math
  import time
  import paddle
  import paddle.nn
  import paddle.nn.functional
label_desc: Use image node_id 1 to create a new SparseEmbedding object from inherited base classes: object with example: obj = SparseEmbedding(num, dim, weight_attr)