code: def testVarLenTensorValueInvalidShape(self):
      with self.assertRaisesRegex(
          ValueError, r"A VarLenTensorValue .* \(\[2 2 2\]\)"
      ):
          types.VarLenTensorValue(
              values=np.array([1, 2, 3, 4, 5, 6, 7, 8]),
              indices=np.array(
                  [
                      [0, 0, 0],
                      [0, 0, 1],
                      [0, 1, 0],
                      [0, 1, 1],
                      [1, 0, 0],
                      [1, 0, 1],
                      [1, 1, 0],
                      [1, 1, 1],
                  ]
              ),
              dense_shape=np.array([2, 2, 2]),
          )
  
file_path: model-analysis/tensorflow_model_analysis/api/types_test.py
imports: from absl.testing import absltest
  import numpy
  from tensorflow_model_analysis.api import types
label_desc: Use image node_id 3 for calling the TypesTest obj's underlying member method code with example usage: obj.testVarLenTensorValueInvalidShape() without return types