code: def test_document_matches_filter_raises_error(filter):
      with pytest.raises(FilterError):
          document = Document(meta={"page": 10})
          document_matches_filter(filter, document)
  
file_path: haystack/test/utils/test_filters.py
imports: import pytest
  import pandas
  from haystack import Document
  from haystack.errors import FilterError
  from haystack.utils.filters import convert, document_matches_filter
label_desc: Use image node_id 2 for calling a global function with example usage: test_document_matches_filter_raises_error(filter) without return types