code: def __init__(self, ngram_size: int, **kwargs) -> None:
      super().__init__(**kwargs)
      self.ngram_size = ngram_size
  
imports: from inspect import signature
  from typing import Any, List, Callable, Tuple, Dict, cast, TypeVar, Optional
  import copy
  import warnings
  import torch
  from allennlp.common import Lazy, Registrable
  from allennlp.common.checks import ConfigurationError
  from allennlp.data import Vocabulary
  from allennlp.nn.util import min_value_of_dtype
label_desc: Use image node_id 1 to create a new RepeatedNGramBlockingConstraint object from inherited base classes: Constraint with example: obj = RepeatedNGramBlockingConstraint(ngram_size)