code: def test_repeat_batch_sampler():
      sampler = torch.utils.data.SequentialSampler(range(10))
      batch_sampler = torch.utils.data.BatchSampler(sampler, 3, False)
      repeat_batch_sampler = samplers.RepeatBatchSampler(batch_sampler)
  
      assert len(repeat_batch_sampler) == 4
  
      one_pass = list(batch_sampler)
  
      iterator = iter(repeat_batch_sampler)
      for _ in range(3):
          assert one_pass == [
              next(iterator) for _ in range(len(one_pass))
          ]
  
imports: import logging
  import queue
  import typing
  from logging import handlers
  import numpy
  import pytest
  import torch
  import determined
  from determined.pytorch import data_length, samplers, to_device
label_desc: Use image node_id 6 for calling a global function with example usage: test_repeat_batch_sampler() without return types