code: def from_toplosses(cls, learn, n_imgs=None, **kwargs):
          "Gets indices with top losses."
          train_ds, train_idxs = cls.get_toplosses_idxs(learn, n_imgs, **kwargs)
          return train_ds, train_idxf from_toplosses(cls, learn, n_imgs=None, **kwargs):
          "Gets indices with top losses."
          train_ds, train_idxs = cls.get_toplosses_idxs(learn, n_imgs, **kwargs)
          return train_ds, train_idxs
docs: Gets indices with top losses.