class_docstr: Set2SetTest
      
docstr: test_graphsage_sample
          
code: def test_graphsage_sample(self):
      """test_graphsage_sample"""
      import numpy as np
  
      def model_func():
          s2s = Set2Set(5, 1, 3)
          h0 = L.data(
              name="h0",
              shape=[2, 10, 5],
              dtype="float32",
              append_batch_size=False,
          )
          h1 = s2s.forward(h0)
          return (h1,)
  
      data = {"h0": np.random.rand(2, 10, 5).astype("float32")}
      (h1,) = paddle_easy_run(model_func, data)
  
      self.assertEqual(h1.shape[0], 2)
      self.assertEqual(h1.shape[1], 10)
  
file_path: PGL/legacy/pgl/tests/test_set2set.py
imports: from __future__ import division
  from __future__ import absolute_import
  from __future__ import print_function
  from __future__ import unicode_literals
  import unittest
  import paddle.fluid
  import paddle.fluid.layers
  from pgl.layers.set2set import Set2Set
label_desc: Use image node_id 1 for calling the Set2SetTest obj's underlying member method code with example usage: obj.test_graphsage_sample() and returns: h1