code: def test_every_filter(self):
      # every = 10
      @Filter(every=10)
      def _fn(data):
          return data
  
      _res = []
      for i in range(100):
          cu_res = _fn(i)
          if cu_res is not None:
              _res.append(cu_res)
      assert _res == [w - 1 for w in range(10, 101, 10)]
  
      # every = 1
      @Filter(every=1)
      def _fn(data):
          return data
  
      _res = []
      for i in range(100):
          cu_res = _fn(i)
          if cu_res is not None:
              _res.append(cu_res)
      assert _res == list(range(100))
  
file_path: fastNLP/tests/core/callbacks/test_callback_event.py
imports: import pytest
  from functools import reduce
  from fastNLP.core.callbacks.callback_event import Event, Filter
label_desc: Use image node_id 1 for calling the TestFilter obj's underlying member method code with example usage: obj.test_every_filter() and returns: data, data