docstr: Tests the correct exceptions are raised for invalid types.
docstr_tok: ["Tests","the","correct","exceptions","are","raised","for","invalid","types","."]
code: def test_pool_exception_raised_types(
      self, err_msg, data_type, pool_map_type, sizes_type
  ):
      """Tests the correct exceptions are raised for invalid types."""
      data = np.ones((2, 3, 3), dtype=data_type)
      pool_map = _dense_to_sparse(
          np.ones((2, 3, 3), dtype=pool_map_type)
      )
      sizes = np.array(((1, 2), (2, 3)), dtype=sizes_type)
  
      with self.assertRaisesRegexp(TypeError, err_msg):
          gp.pool(data, pool_map, sizes)
  
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 1 for calling the GraphPoolingTestPoolTests obj's underlying member method code with example usage: obj.test_pool_exception_raised_types(err_msg, data_type, pool_map_type, sizes_type) without return types