class_docstr: Base class for Megatron style BatchSampler.
class_docstr_tok: ["Base","class","for","Megatron","style","BatchSampler","."]
code: def __iter__(self):
      ...
  
imports: import abc
  import torch
label_desc: Use image node_id 2 for calling the _Base obj's underlying member method code with example usage: obj.__iter__() without return types