code: def test_graph_embed_pool_layer():
      """Test invoking GraphEmbedPoolLayer."""
      V = np.random.uniform(size=(10, 100, 50)).astype(np.float32)
      adjs = np.random.uniform(size=(10, 100, 5, 100)).astype(
          np.float32
      )
      layer = layers.GraphEmbedPoolLayer(num_vertices=6)
      result = layer([V, adjs])
      assert result[0].shape == (10, 6, 50)
      assert result[1].shape == (10, 6, 5, 6)
  
      # Creating a second layer should produce different results, since it has
      # different random weights.
  
      layer2 = layers.GraphEmbedPoolLayer(num_vertices=6)
      result2 = layer2([V, adjs])
      assert not np.allclose(result[0], result2[0])
      assert not np.allclose(result[1], result2[1])
  
      # But evaluating the first layer again should produce the same result as before.
  
      result3 = layer([V, adjs])
      assert np.allclose(result[0], result3[0])
      assert np.allclose(result[1], result3[1])
  
imports: import deepchem
  import numpy
  import pytest
  import os
label_desc: Use image node_id 24 for calling a global function with example usage: test_graph_embed_pool_layer() without return types