code: def __init__(
      self, num, dim, sparse=None, weight_attr=None, name=None, **kwargs
  ):
      self.num = num
      self.dim = dim
      self.sparse = sparse
      self.emb_attr = weight_attr
      self.name = name
  
file_path: PGL/apps/Graph4Rec/env_run/src/models/embedding.py
imports: import math
  import time
  import paddle
  import paddle.nn
label_desc: Use image node_id 1 to create a new SparseEmbedding object from inherited base classes: object with example: obj = SparseEmbedding(num, dim, sparse, weight_attr, name)