code: def test_filter_too_long(self):
      filter_cls = get_transforms_cls(["filtertoolong"])[
          "filtertoolong"
      ]
      opt = Namespace(src_seq_length=100, tgt_seq_length=100)
      filter_transform = filter_cls(opt)
      # filter_transform.warm_up()
      ex_in = {
          "src": ["Hello", "world", "."],
          "tgt": ["Bonjour", "le", "monde", "."],
      }
      ex_out = filter_transform.apply(ex_in)
      self.assertIs(ex_out, ex_in)
      filter_transform.tgt_seq_length = 2
      ex_out = filter_transform.apply(ex_in)
      self.assertIsNone(ex_out)
  
imports: import unittest
  import copy
  import yaml
  import math
  from argparse import Namespace
  from onmt.transforms import get_transforms_cls, get_specials, make_transforms, TransformPipe
  from onmt.transforms.bart import BARTNoising
label_desc: Use image node_id 2 for calling the TestMiscTransform obj's underlying member method code with example usage: obj.test_filter_too_long() without return types