code: def testWindowIgnoreErrors(self):
      input_values = np.float32([1.0, np.nan, 2.0, np.nan, 3.0])
      dataset = (
          dataset_ops.Dataset.from_tensor_slices(input_values)
          .map(lambda x: array_ops.check_numerics(x, "message"))
          .window(size=2, shift=2, stride=2, drop_remainder=True)
          .flat_map(lambda x: x.batch(batch_size=2))
      )
      self.assertDatasetProduces(
          dataset,
          expected_output=[
              np.float32([1.0, 2.0]),
              np.float32([2.0, 3.0]),
          ],
      )
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.data.kernel_tests import checkpoint_test_base
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.util import nest
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 8 for calling the WindowTest obj's underlying member method code with example usage: obj.testWindowIgnoreErrors() without return types