code: def test_bad_filters():
      bad_filters = ({"min_len": -1},)
      for bad_filter in bad_filters:
          with pytest.raises(ValueError):
              list(DATASET.texts(**bad_filter))
      bad_filters = (
          {"rating_range": 5},
          {"rating_range": ("1", "10")},
      )
      for bad_filter in bad_filters:
          with pytest.raises(TypeError):
              list(DATASET.texts(**bad_filter))
  
file_path: textacy/tests/datasets/test_imdb.py
imports: import datetime
  import os
  import pytest
  from textacy.datasets.imdb import IMDB
label_desc: Use image node_id 11 for calling a global function with example usage: test_bad_filters() without return types