class_docstr: Base class for samplers.
  
  All samplers should subclass `BaseSampler` and define `__iter__` and `__len__`
  methods.
class_docstr_tok: ["Base","class","for","samplers",".","All","samplers","should","subclass","`","BaseSampler","`","and","define","`","__iter__","`","and","`","__len__","`","methods","."]
code: def __iter__(self):
      raise NotImplementedError
  
imports: import math
  import random
  import warnings
  import numpy
  import abc
  import logging
  from typing import Union, Sequence, Optional, List
  from ..base import INT_TYPES
label_desc: Use image node_id 1 for calling the BaseSampler obj's underlying member method code with example usage: obj.__iter__() without return types