code: def testBijectorArrayEventNdims(self):
      bij = BrokenBijector()
      with self.assertRaisesRegex(ValueError, "Expected scalar"):
          bij.forward_log_det_jacobian(1.0, event_ndims=(1, 2))
      with self.assertRaisesRegex(ValueError, "Expected scalar"):
          bij.inverse_log_det_jacobian(1.0, event_ndims=(1, 2))
  
imports: import abc
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops.distributions import bijector
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the BijectorTestEventNdims obj's underlying member method code with example usage: obj.testBijectorArrayEventNdims() without return types