class_docstr: Filter out sentence that are too long.
docstr: Return None if too long else return as is.
docstr_tok: ["Return","None","if","too","long","else","return","as","is","."]
code: def apply(self, example, is_train=False, stats=None, **kwargs):
      """Return None if too long else return as is."""
      if (
          len(example["src"]) > self.src_seq_length
          or len(example["tgt"]) > self.tgt_seq_length - 2
      ):
          if stats is not None:
              stats.update(FilterTooLongStats())
          return None
      else:
          return example
  
imports: from onmt.utils.logging import logger
  from onmt.transforms import register_transform
  from .transform import Transform, ObservableStats
label_desc: Use image node_id 4 for calling the FilterTooLongTransform obj's underlying member method code with example usage: obj.apply(example, is_train, stats) and returns: None, example