class_docstr: StreamSampler
      
class_docstr_tok: ["StreamSampler"]
code: def __iter__(self):
      batch = [i for i in range(self.batch_size)]
      while True:
          yield batch
  
file_path: PGL/pgl/utils/data/sampler.py
imports: import time
  import numpy
label_desc: Use image node_id 2 for calling the StreamSampler obj's underlying member method code with example usage: obj.__iter__() without return types