docstr: Tests the jacobian is correct.
docstr_tok: ["Tests","the","jacobian","is","correct","."]
code: def test_pool_jacobian(self):
      """Tests the jacobian is correct."""
      sizes = ((2, 4), (3, 5))
      data_init = np.random.uniform(size=(2, 5, 3))
      pool_map = np.random.uniform(size=(2, 3, 5))
      data_init[0, -1, :] = 0.0
      pool_map[0, -1, :] = 0.0
      pool_map = _dense_to_sparse(pool_map)
  
      def gp_pool(data, algorithm):
          return gp.pool(data, pool_map, sizes, algorithm=algorithm)
  
      with self.subTest(name="max"):
          self.assert_jacobian_is_correct_fn(
              lambda data: gp_pool(data, "max"), [data_init]
          )
  
      with self.subTest(name="weighted"):
          self.assert_jacobian_is_correct_fn(
              lambda data: gp_pool(data, "weighted"), [data_init]
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import itertools
  from absl.testing import parameterized
  import numpy
  from six.moves import range
  import tensorflow
  import tensorflow_graphics.geometry.convolution.graph_pooling
  from tensorflow_graphics.geometry.convolution.tests import utils_test
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 8 for calling the GraphPoolingTestPoolTests obj's underlying member method code with example usage: obj.test_pool_jacobian() and returns: gp