code: def testAssertPrevInvalid(self):
      dataset = dataset_ops.Dataset.from_tensors(0).apply(
          testing.assert_prev([("Whoops", {})])
      )
      self.assertDatasetProduces(
          dataset,
          expected_error=(
              errors.InvalidArgumentError,
              "Asserted transformation matching 'Whoops'",
          ),
      )
  
file_path: tensorflow/tensorflow/python/data/experimental/kernel_tests/assert_prev_test.py
imports: from absl.testing import parameterized
  from tensorflow.python.data.experimental.ops import testing
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import options
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import errors
  from tensorflow.python.platform import test
label_desc: Use image node_id 3 for calling the AssertPrevTest obj's underlying member method code with example usage: obj.testAssertPrevInvalid() without return types