code: def test_filter_transformation():
      prediction_length = 10
      tran1 = transform.FilterTransformation(
          lambda x: x["target"].shape[-1] > prediction_length
      )
      # serde.flat.clone(tran1) does not work on
      tran2 = transform.FilterTransformation(
          lambda x: x["target"].shape[-1] > prediction_length
      )
      tran3 = transform.FilterTransformation(
          condition=lambda x: x["target"].shape[-1] < prediction_length
      )
  
      assert equals(tran1, tran2)
      assert not equals(tran1, tran3)
  
file_path: gluonts/test/mx/test_transform_equals.py
imports: from gluonts.core.serde.flat import clone
  from gluonts import time_feature, transform
  from gluonts.core.component import equals
  from gluonts.dataset.field_names import FieldName
  from gluonts.mx import CanonicalRNNEstimator
  from pandas.tseries.frequencies import to_offset
label_desc: Use image node_id 3 for calling a global function with example usage: test_filter_transformation() without return types