docstr: Tests pooling with preset data and padding.
docstr_tok: ["Tests","pooling","with","preset","data","and","padding","."]
code: def test_pool_preset_padded(self):
      """Tests pooling with preset data and padding."""
      data = np.reshape(np.arange(12).astype(np.float32), (2, 3, 2))
      sizes = ((2, 3), (3, 3))
      pool_map = _dense_to_sparse(
          np.array(
              (
                  ((0.5, 0.5, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 0.0)),
                  ((1.0, 0.0, 0.0), (0.0, 1.0, 0.0), (0.0, 0.0, 1.0)),
              ),
              dtype=np.float32,
          )
      )
  
      pooled_max = gp.pool(data, pool_map, sizes, algorithm="max")
      pooled_weighted = gp.pool(
          data, pool_map, sizes, algorithm="weighted"
      )
      true_max = (
          ((2.0, 3.0), (4.0, 5.0), (0.0, 0.0)),
          ((6.0, 7.0), (8.0, 9.0), (10.0, 11.0)),
      )
      true_weighted = (
          ((1.0, 2.0), (4.0, 5.0), (0.0, 0.0)),
          ((6.0, 7.0), (8.0, 9.0), (10.0, 11.0)),
      )
  
      self.assertAllClose(pooled_max, true_max)
      self.assertAllClose(pooled_weighted, true_weighted)
  
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 5 for calling the GraphPoolingTestPoolTests obj's underlying member method code with example usage: obj.test_pool_preset_padded() without return types