docstr: Check that invalid input shapes trigger the right exceptions.
code: def test_edge_convolution_template_exception_raised_shapes(self):
      """Check that invalid input shapes trigger the right exceptions."""
      with self.assertRaisesRegexp(ValueError, "must have a rank of 2"):
          data, neighbors = _dummy_data(1, 5, 2)
          data = data[0, :]
          _ = gc.edge_convolution_template(
              data=data,
              neighbors=neighbors,
              sizes=None,
              edge_function=self._zeros,
              reduction="weighted",
              edge_function_kwargs=dict(),
          )
  
      with self.assertRaisesRegexp(
          ValueError, "must have a rank greater than 1"
      ):
          data = np.ones(shape=(5), dtype=np.float32)
          neighbors = _dense_to_sparse(
              np.ones(shape=(5), dtype=np.float32)
          )
          _ = gc.edge_convolution_template(
              data=data,
              neighbors=neighbors,
              sizes=None,
              edge_function=self._zeros,
              reduction="weighted",
              edge_function_kwargs=dict(),
          )
  
      with self.assertRaisesRegexp(ValueError, "must have a rank of 1"):
          data, neighbors = _dummy_data(1, 5, 2)
          _ = gc.edge_convolution_template(
              data=data,
              neighbors=neighbors,
              sizes=((1, 1), (1, 1)),
              edge_function=self._zeros,
              reduction="weighted",
              edge_function_kwargs=dict(),
          )
  
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_convolution
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 7 for calling the EdgeConvolutionTemplateTests obj's underlying member method code with example usage: obj.test_edge_convolution_template_exception_raised_shapes() without return types