code: def testDeterminismConfiguration(self, sloppy, global_determinism):
      if sloppy is None:
          expect_determinism = global_determinism
      else:
          expect_determinism = not sloppy
      elements = list(range(1000))
  
      def dataset_fn(delay_ms):
          def interleave_fn(x):
              ds = dataset_ops.Dataset.from_tensors(x)
              if math_ops.equal(x, 0):
                  ds = ds.apply(testing.sleep(delay_ms * 1000))
              else:
                  ds = ds.apply(testing.sleep(0))
              return ds
  
          dataset = dataset_ops.Dataset.from_tensor_slices(elements)
          dataset = dataset.apply(
              interleave_ops.parallel_interleave(
                  interleave_fn, cycle_length=10, sloppy=sloppy
              )
          )
  
          opts = options_lib.Options()
          opts.deterministic = global_determinism
          dataset = dataset.with_options(opts)
          return dataset
  
      self.checkDeterminism(dataset_fn, expect_determinism, elements)
  
imports: import itertools
  import math
  import threading
  import time
  from absl.testing import parameterized
  import numpy
  from tensorflow.python.data.experimental.ops import interleave_ops
  from tensorflow.python.data.experimental.ops import testing
  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.ops import options
  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 math_ops
  from tensorflow.python.ops import script_ops
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 14 for calling the ParallelInterleaveTest obj's underlying member method code with example usage: obj.testDeterminismConfiguration(sloppy, global_determinism) and returns: dataset, ds