code: def test_filter_terms_by_df_exception(vectorizer_and_dtm):
      vectorizer, doc_term_matrix = vectorizer_and_dtm
      with pytest.raises(ValueError):
          _ = representations.filter_terms_by_df(
              doc_term_matrix,
              vectorizer.vocabulary_terms,
              max_df=1.0,
              min_df=6,
              max_n_terms=None,
          )
  
imports: import pytest
  import numpy
  from scipy.sparse import coo_matrix
  from textacy import extract, representations
label_desc: Use image node_id 20 for calling a global function with example usage: test_filter_terms_by_df_exception(vectorizer_and_dtm) without return types