code: def test_bad_filters():
      bad_filters = (
          {"author": "Burton DeWilde"},
          {"min_len": -1},
      )
      for bad_filter in bad_filters:
          with pytest.raises(ValueError):
              list(DATASET.texts(**bad_filter))
      bad_filters = (
          {"date_range": "2016-01-01"},
          {
              "date_range": (
                  datetime.date(1800, 1, 1),
                  datetime.date(1900, 1, 1),
              )
          },
      )
      for bad_filter in bad_filters:
          with pytest.raises(TypeError):
              list(DATASET.texts(**bad_filter))
  
file_path: textacy/tests/datasets/test_oxford_text_archive.py
imports: import datetime
  import os
  import pytest
  from textacy.datasets.oxford_text_archive import OxfordTextArchive
label_desc: Use image node_id 10 for calling a global function with example usage: test_bad_filters() without return types