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