class_docstr: RepeatBatchSampler yields infinite batches indices by repeatedly iterating
  through the batches of another BatchSampler. __len__ is just the length of
  the underlying BatchSampler.
class_docstr_tok: ["RepeatBatchSampler","yields","infinite","batches","indices","by","repeatedly","iterating","through","the","batches","of","another","BatchSampler",".","__len__","is","just","the","length","of","the","underlying","BatchSampler","."]
code: def __len__(self) -> int:
      return len(self.batch_sampler)
  
imports: from typing import Iterator
  import numpy
  import torch
label_desc: Use image node_id 2 for calling the RepeatBatchSampler obj's underlying member method code with example usage: obj.__len__() and returns: len