code: def testSleepBackgroundCancellation(self):
      ds = dataset_ops.Dataset.range(1)
  
      sleep_microseconds = int(1e6) * 1000
      ds_sleep = dataset_ops.Dataset.range(1)
      ds_sleep = ds.apply(testing.sleep(sleep_microseconds))
  
      ds = ds.concatenate(ds_sleep)
      ds = ds.prefetch(1)
  
      get_next = self.getNext(ds, requires_initialization=True)
  
      with self.cached_session():
          self.assertEqual(self.evaluate(get_next()), 0)
  
file_path: tensorflow-upstream/tensorflow/python/data/experimental/kernel_tests/sleep_test.py
imports: import time
  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.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 SleepTest obj's underlying member method code with example usage: obj.testSleepBackgroundCancellation() without return types