code: def forward(self, x):
      x_shape = paddle.shape(x)
      x = paddle.reshape(x, [-1, 1])
  
      x_emb = paddle.static.nn.sparse_embedding(
          x, [self.num, self.dim], param_attr=self.emb_attr
      )
  
      return paddle.reshape(x_emb, [x_shape[0], x_shape[1], self.dim])
  
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 2 for calling the SparseEmbedding obj's underlying member method code with example usage: obj.forward(x) and returns: paddle