code: def test_document_matches_filter(filter, document, expected_result):
      assert (
          document_matches_filter(filter, document) == expected_result
      )
  
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 1 for calling a global function with example usage: test_document_matches_filter(filter, document, expected_result) without return types