class_docstr: Repeats the wrapped attack and returns the best result
class_docstr_tok: ["Repeats","the","wrapped","attack","and","returns","the","best","result"]
code: def __init__(self, attack: AttackWithDistance, times: int):
      if times < 1:
          raise ValueError(
              f"expected times >= 1, got {times}"
          )  # pragma: no cover
  
      self.attack = attack
      self.times = times
  
imports: from typing import Callable, TypeVar, Any, Union, Optional, Sequence, List, Tuple, Dict
  from typing_extensions import final, overload
  from abc import ABC, abstractmethod
  from collections.abc import Iterable
  import eagerpy
  from ..models import Model
  from ..criteria import Criterion
  from ..criteria import Misclassification
  from ..devutils import atleast_kd
  from ..distances import Distance
label_desc: Use image node_id 1 to create a new Repeated object from inherited base classes: AttackWithDistance with example: obj = Repeated(attack, times)