code: def test_create_trace(self):
      embeds = SharedEmbedding.from_array(self.x, self.weight_path)
      u = paddle.to_tensor([[1.0], [-1]])
      indexs = paddle.to_tensor([0, 2])
      grad = paddle.to_tensor([[1.0, 1.0], [-1, -1]])
  
      tensors = embeds(indexs)
      loss = (tensors * u).sum()
      loss.backward()
      trace = embeds.create_trace(paddle.to_tensor(indexs), tensors)
      self.assertTrue((trace[1][0] == grad).all())
  
imports: import time
  import unittest
  import numpy
  import paddle
  from pgl.utils.shared_embedding import SharedEmbedding
label_desc: Use image node_id 10 for calling the TestSharedEmebdding obj's underlying member method code with example usage: obj.test_create_trace() without return types