docstr: Tests the correct exception is raised for an invalid algorithm.
docstr_tok: ["Tests","the","correct","exception","is","raised","for","an","invalid","algorithm","."]
code: def test_pool_exception_raised_algorithm(self):
      """Tests the correct exception is raised for an invalid algorithm."""
      data = np.ones(shape=(2, 2))
      pool_map = _dense_to_sparse(np.ones(shape=(2, 2)))
  
      with self.assertRaisesRegexp(
          ValueError, 'The pooling method must be "weighted" or "max"'
      ):
          gp.pool(data, pool_map, sizes=None, algorithm="mean")
  
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 3 for calling the GraphPoolingTestPoolTests obj's underlying member method code with example usage: obj.test_pool_exception_raised_algorithm() without return types