class_docstr: Sampler
      
class_docstr_tok: ["Sampler"]
code: def __len__(self):
      length = len(self.dataset)
      if self.drop_last:
          length = length // self.batch_size
      else:
          length = (length + self.batch_size - 1) // self.batch_size
      return length
  
file_path: PGL/pgl/utils/data/sampler.py
imports: import time
  import numpy
label_desc: Use image node_id 3 for calling the Sampler obj's underlying member method code with example usage: obj.__len__() and returns: length