class_docstr: Base class for CPU/GPU rasterization backend tests.
class_docstr_tok: ["Base","class","for","CPU\/GPU","rasterization","backend","tests","."]
docstr: Tests that unsupported backends raise exceptions.
docstr_tok: ["Tests","that","unsupported","backends","raise","exceptions","."]
code: def test_rasterizer_rasterize_exception_raised(
      self, shapes, dtypes, backend
  ):
      """Tests that unsupported backends raise exceptions."""
      placeholders = self._create_placeholders(shapes, dtypes)
      with self.assertRaisesRegexp(
          KeyError, "Backend is not supported"
      ):
          rasterization_backend.rasterize(
              placeholders[0],
              placeholders[1],
              placeholders[2],
              (self.IMAGE_WIDTH, self.IMAGE_HEIGHT),
              self._enable_cull_face,
              self._num_layers,
              backend,
          )
  
file_path: graphics/tensorflow_graphics/rendering/tests/rasterization_backend_test_base.py
imports: from absl.testing import parameterized
  import tensorflow
  from tensorflow_graphics.rendering import rasterization_backend
  from tensorflow_graphics.rendering.tests import rasterization_test_utils
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 5 for calling the RasterizationBackendTestBase obj's underlying member method code with example usage: obj.test_rasterizer_rasterize_exception_raised(shapes, dtypes, backend) without return types