code: def testCompatibleWithCheckpoint(self, enable_async_ckpt):
      ds = dataset_ops.Dataset.range(10)
      iterator = ds.as_numpy_iterator()
      ckpt = trackable_utils.Checkpoint(iterator=iterator)
      ckpt_options = checkpoint_options.CheckpointOptions(
          experimental_enable_async_checkpoint=enable_async_ckpt
      )
      for _ in range(5):
          next(iterator)
  
      prefix = os.path.join(self.get_temp_dir(), "ckpt")
      save_path = ckpt.save(prefix, options=ckpt_options)
      self.assertEqual(5, next(iterator))
      self.assertEqual(6, next(iterator))
      restore_iter = ds.as_numpy_iterator()
      restore_ckpt = trackable_utils.Checkpoint(iterator=restore_iter)
      if enable_async_ckpt:
          ckpt.sync()  # Otherwise save may not finish yet
      restore_ckpt.restore(save_path)
      self.assertEqual(5, next(restore_iter))
  
imports: import collections
  import os
  from absl.testing import parameterized
  import numpy
  from tensorflow.python.checkpoint import checkpoint
  from tensorflow.python.checkpoint import checkpoint_options
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.eager import test
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.ops.ragged import ragged_factory_ops
label_desc: Use image node_id 11 for calling the AsNumpyIteratorTest obj's underlying member method code with example usage: obj.testCompatibleWithCheckpoint(enable_async_ckpt) without return types