code: def test_rank_promotion_exception(self):
      with self.assertRaises(ValueError) as cm:
          _ = jnp.zeros((8, 1)) * jnp.zeros((8,))
  
      self.assertIn(
          "could not be broadcast together", str(cm.exception)
      )
  
file_path: dm-haiku/haiku/_src/integration/rank_promotion_test.py
imports: from absl.testing import absltest
  from absl.testing import parameterized
  import haiku
  from haiku._src import test_utils
  from haiku._src.integration import descriptors
  import jax
  import jax.numpy
  import numpy
label_desc: Use image node_id 4 for calling the RankPromotionTest obj's underlying member method code with example usage: obj.test_rank_promotion_exception() without return types