docstr: Tests pooling with preset data.
docstr_tok: ["Tests","pooling","with","preset","data","."]
code: def test_pool_preset(self):
      """Tests pooling with preset data."""
      pool_map = np.array(
          ((0.5, 0.5, 0.0, 0.0), (0.0, 0.0, 0.5, 0.5)), dtype=np.float32
      )
      pool_map = _dense_to_sparse(pool_map)
      data = np.reshape(np.arange(8).astype(np.float32), (4, 2))
      max_true = data[(1, 3), :]
      max_weighted = (data[(0, 2), :] + max_true) * 0.5
  
      pooled_max = gp.pool(data, pool_map, sizes=None, algorithm="max")
      pooled_weighted = gp.pool(
          data, pool_map, sizes=None, algorithm="weighted"
      )
  
      self.assertAllClose(pooled_max, max_true)
      self.assertAllClose(pooled_weighted, max_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 6 for calling the GraphPoolingTestPoolTests obj's underlying member method code with example usage: obj.test_pool_preset() without return types