code: def test_invalid_filters():
      with pytest.raises(AssertionError):
          predefined_filters.set_filters([{}])
      with pytest.raises(AssertionError):
          predefined_filters.set_filters([{"name": "foo"}])
      with pytest.raises(AssertionError):
          predefined_filters.set_filters(
              [{"name": "foo", "column": "bar"}]
          )
      with pytest.raises(AssertionError):
          predefined_filters.set_filters(
              [{"name": "foo", "column": "bar", "handler": lambda x: x}]
          )
      with pytest.raises(AssertionError):
          predefined_filters.set_filters(
              [
                  {
                      "name": "foo",
                      "column": "bar",
                      "handler": lambda df, val: df[
                          (df["A"] == val) & (df["B"] % 2 == 0)
                      ],
                  }
              ]
          )
      with pytest.raises(AssertionError):
          predefined_filters.set_filters(
              [
                  {
                      "name": "foo",
                      "column": "bar",
                      "handler": lambda df, val: df[
                          (df["A"] == val) & (df["B"] % 2 == 0)
                      ],
                      "input_type": "unknown",
                  }
              ]
          )
  
file_path: dtale/tests/dtale/test_predefined_filters.py
imports: import mock
  import pytest
  import pandas
  import dtale.global_state
  import dtale.predefined_filters
  from dtale.query import handle_predefined
  from tests import ExitStack
label_desc: Use image node_id 3 for calling a global function with example usage: test_invalid_filters() without return types