class_docstr: Subclass of Bootstrapper class.
  
  For testing purpose, we subclass the bootstrapper class so we can get the exact permutation the class is creating.
  This is necessary such that the reference we are comparing to returns the exact same result for a given permutation.
class_docstr_tok: ["Subclass","of","Bootstrapper","class",".","For","testing","purpose",",","we","subclass","the","bootstrapper","class","so","we","can","get","the","exact","permutation","the","class","is","creating",".","This","is","necessary","such","that","the","reference","we","are","comparing","to","returns","the","exact","same","result","for","a","given","permutation","."]
docstr: Update input where the permutation is also saved.
docstr_tok: ["Update","input","where","the","permutation","is","also","saved","."]
code: def update(self, *args: Any) -> None:
      """Update input where the permutation is also saved."""
      self.out = []
      for idx in range(self.num_bootstraps):
          size = len(args[0])
          sample_idx = _bootstrap_sampler(
              size, sampling_strategy=self.sampling_strategy
          ).to(self.device)
          new_args = apply_to_collection(
              args, Tensor, torch.index_select, dim=0, index=sample_idx
          )
          self.metrics[idx].update(*new_args)
          self.out.append(new_args)
  
file_path: torchmetrics/tests/unittests/wrappers/test_bootstrapping.py
imports: import operator
  from functools import partial
  from typing import Any
  import numpy
  import pytest
  import torch
  from lightning_utilities import apply_to_collection
  from sklearn.metrics import mean_squared_error, precision_score, recall_score
  from torch import Tensor
  from torchmetrics.classification import MulticlassF1Score, MulticlassPrecision, MulticlassRecall
  from torchmetrics.regression import MeanSquaredError
  from torchmetrics.wrappers.bootstrapping import BootStrapper, _bootstrap_sampler
  from unittests.helpers import seed_all
label_desc: Use image node_id 1 for calling the TestBootStrapper obj's underlying member method code with example usage: obj.update() without return types