code: def __init__(
      self, dataset, batch_size=1, drop_last=False, shuffle=False
  ):
      self.dataset = dataset
      self.batch_size = batch_size
      self.drop_last = drop_last
      self.shuffle = shuffle
  
file_path: PGL/legacy/pgl/utils/data/sampler.py
imports: import time
  import numpy
label_desc: Use image node_id 1 to create a new Sampler object from inherited base classes: object with example: obj = Sampler(dataset, batch_size, drop_last, shuffle)