    def test_data_collection_filter_invalid(self):
        """
        target: test filter() API for invalid scenario
        method: filter_columns not exist, func invalid
        expected: raise exception
        """
        try:
            towhee.pipe.input('a').filter('a', 'b', lambda x: x < 0).output('b')
        except Exception as e:
            assert "missing" in str(e)

        try:
            p = towhee.pipe.input('a').filter('a', 'b', 'a', lambda x: x + y).output('b')
            p(10).get()
        except Exception as e:
            assert "not defined" in str(e)

        return True
target: test filter() API for invalid scenario
method: filter_columns not exist, func invalid
expected: raise exception
tests/testcases/test_data_collection.py