class_docstr: Batch Sampler class for multipack
class_docstr_tok: ["Batch","Sampler","class","for","multipack"]
code: def num_batches(self):
      batches = self.generate_batches(set_stats=True)
      return len(batches)
  
file_path: axolotl/src/axolotl/utils/samplers/multipack.py
imports: import logging
  import math
  import os
  from typing import Any, Iterable, List, Union
  import numba
  import numpy
  from torch.utils.data import BatchSampler, Sampler
label_desc: Use image node_id 5 for calling the MultipackBatchSampler obj's underlying member method code with example usage: obj.num_batches() and returns: len