code: def testNonrepeatedDatasetDoesntProduceSecondRepetitionDir(
      self, num_workers, num_sources
  ):
      cluster = data_service_test_base.TestCluster(
          num_workers=num_workers
      )
      snapshot_dir = data_service_test_base.TempDir()
      dataset = self._get_dataset(
          dataset_range=1000, num_sources=num_sources
      )
      self.evaluate(
          distributed_save_op.distributed_save(
              dataset,
              snapshot_dir.full_path,
              cluster.dispatcher_address(),
          )
      )
  
      for i in range(num_workers):
          cluster.stop_worker(i)
          cluster.restart_dispatcher()
          cluster.restart_worker(i)
      wait_for_snapshot(snapshot_dir.full_path)
      self.assertTrue(snapshot_is_done(snapshot_dir.full_path))
      for stream_idx in range(num_workers):
          for source_idx in range(num_sources):
              self.assertFalse(
                  os.path.exists(
                      os.path.join(
                          snapshot_dir.full_path,
                          "streams",
                          f"stream_{stream_idx}",
                          "splits",
                          f"source_{source_idx}",
                          "repetition_1",
                      )
                  )
              )
  
imports: import collections
  import os
  import pathlib
  import time
  from absl.testing import parameterized
  from tensorflow.python.data.experimental.kernel_tests.service import test_base
  from tensorflow.python.data.experimental.ops import distributed_save_op
  from tensorflow.python.data.experimental.service import _pywrap_snapshot_utils
  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 16 for calling the SnapshotFtTest obj's underlying member method code with example usage: obj.testNonrepeatedDatasetDoesntProduceSecondRepetitionDir(num_workers, num_sources) without return types