code: def __init__(self, max_iterations):
      """
      max_iterations : int
          Number of iterations after which the criterion will indicate to stop.
      """
      if max_iterations < 1:
          raise ValueError(
              f"Argument max_iterations must be greater or equal 1. "
              f"Encountered: {max_iterations}."
          )
  
      self.max_iterations = max_iterations
      self.current_iteration = 0
  
imports: from small_text.stopping_criteria.base import StoppingCriterion
label_desc: Use image node_id 1 to create a new MaxIterations object from inherited base classes: StoppingCriterion with example: obj = MaxIterations(max_iterations)