code: def num_samples(self):
      if self.batch_size == 0:
          return 0
  
      return self.epochs * self.ipe
  
imports: import contextlib
  import logging
  import queue
  from typing import Dict, List
  import numpy
  import torch
  from PIL import Image
  from torch.utils.data import Dataset
  from torch.utils.data.distributed import DistributedSampler
label_desc: Use image node_id 12 for calling the StratifiedClassSampler obj's underlying member method code with example usage: obj.num_samples() and returns: unknown, int