code: def __call__(self, v):
      i, xs = v
      rnd = random.Random()
      rnd.seed(i)
      res = []
      for _ in range(self.n):
          res.append(self.f(rnd.choices(xs, k=len(xs))))
      return res
  
imports: import math
  from collections.abc import Iterable
  import numpy
  import sacrebleu
  import sklearn.metrics
  import random
  from collections import defaultdict
label_desc: Use image node_id 2 for calling the _bootstrap_internal obj's underlying member method code with example usage: obj.__call__(v) and returns: res