class_docstr: Tests garbage collecting unused local worker tasks.
  
  The user typically creates an iterator in each epoch. This should delete the
  previous iterator and releases the resources of it.
class_docstr_tok: ["Tests","garbage","collecting","unused","local","worker","tasks",".","The","user","typically","creates","an","iterator","in","each","epoch",".","This","should","delete","the","previous","iterator","and","releases","the","resources","of","it","."]
code: def _make_distributed_infinite_range_dataset(
      self, cluster, job_name=None
  ):
      dataset = dataset_ops.Dataset.range(1000000).repeat()
      return self.make_distributed_dataset(
          dataset,
          cluster=cluster,
          job_name=job_name,
          processing_mode=data_service_ops.ShardingPolicy.OFF,
          target_workers="LOCAL",
      )
  
imports: import multiprocessing
  from absl.testing import parameterized
  from tensorflow.python.data.experimental.kernel_tests.service import multi_process_cluster
  from tensorflow.python.data.experimental.kernel_tests.service import test_base
  from tensorflow.python.data.experimental.ops import data_service_ops
  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
label_desc: Use image node_id 8 for calling the LocalTaskGarbageCollectTest obj's underlying member method code with example usage: obj._make_distributed_infinite_range_dataset(cluster, job_name) and returns: self