class_docstr: Weighted dataloader where `wgts` is used for the training set only
class_docstr_tok: ["Weighted","dataloader","where","`","wgts","`","is","used","for","the","training","set","only"]
code: def get_idxs(self):
      if self.n == 0:
          return []
      if not self.shuffle:
          return super().get_idxs()
      return list(np.random.choice(self.n, self.n, p=self.wgts))
  
file_path: fastai/fastai/callback/data.py
imports: from __future__ import annotations
  from ..basics import *
label_desc: Use image node_id 2 for calling the WeightedDL obj's underlying member method code with example usage: obj.get_idxs() and returns: list, list, super