class_docstr: Tests for methods in piecewise module.
class_docstr_tok: ["Tests","for","methods","in","piecewise","module","."]
docstr: Tests that `values` event shape is `jump_locations` event shape + 1.
docstr_tok: ["Tests","that","`","values","`","event","shape","is","`","jump_locations","`","event","shape","+","1","."]
code: def test_invalid_value_event_shape(self, dtype):
      """Tests that `values` event shape is `jump_locations` event shape + 1."""
      jump_locations = np.array([[0.1, 10], [2.0, 10]])
      values = tf.constant([[3, 4, 5, 6], [3, 4, 5, 7]], dtype=dtype)
      with self.assertRaises(ValueError):
          piecewise.PiecewiseConstantFunc(
              jump_locations, values, dtype=dtype
          )
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 11 for calling the Piecewise obj's underlying member method code with example usage: obj.test_invalid_value_event_shape(dtype) without return types