class_docstr: Wraps another Sampler to yield an infinite stream.
class_docstr_tok: ["Wraps","another","Sampler","to","yield","an","infinite","stream","."]
code: def __init__(self, sampler):
      self.sampler = sampler
  
file_path: dowhy/dowhy/causal_prediction/dataloaders/fast_data_loader.py
imports: import torch
label_desc: Use image node_id 1 to create a new _InfiniteSampler object from inherited base classes: torch.utils.data with example: obj = _InfiniteSampler(sampler)