code: def test_bad_freq_arguments(self):
      vectorizer = TfidfVectorizer(max_doc_freq=2, min_doc_freq=3)
      try:
          vectorizer.fit(self.docs)
      except ValueError:
          assert True
  
imports: import unittest
  from collections import defaultdict
  import numpy
  import numpy.testing
  from cornac.data import TextModality, ReviewModality
  from cornac.data.text import SPECIAL_TOKENS, DEFAULT_PRE_RULES, BaseTokenizer, Vocabulary, CountVectorizer, TfidfVectorizer
label_desc: Use image node_id 3 for calling the TestTfidfVectorizer obj's underlying member method code with example usage: obj.test_bad_freq_arguments() without return types