code: def test_get_max_rank(self):
      term_doc_mat = get_hamlet_term_doc_matrix()
      self.assertEqual(
          TermCategoryRanker().get_max_rank(term_doc_mat), 322
      )
  
file_path: scattertext/scattertext/test/test_associationCompator.py
imports: from unittest import TestCase
  from scattertext.termcompaction.AssociationCompactor import AssociationCompactor, AssociationCompactorByRank, TermCategoryRanker
  from scattertext.test.test_TermDocMat import get_hamlet_term_doc_matrix
label_desc: Use image node_id 4 for calling the TestAssociationCompactor obj's underlying member method code with example usage: obj.test_get_max_rank() without return types