code: def __init__(
      self,
      criteria: List[BaseGenerationStopCriterion],
      tokenizer,
  ):
      super().__init__(tokenizer=tokenizer)
      self.criteria = criteria
  
imports: import abc
  from typing import List, Union
  import torch
label_desc: Use image node_id 1 to create a new PipelinedCriterion object from inherited base classes: BaseGenerationStopCriterion with example: obj = PipelinedCriterion(criteria, tokenizer)