code: def test_build_grp_term_matrix(tokenized_docs, groups):
      result = representations.build_grp_term_matrix(
          tokenized_docs, groups
      )
      assert isinstance(result, tuple) and len(result) == 3
      gtm, vocab_terms, vocab_grps = result
      assert isinstance(gtm, sp.csr_matrix)
      assert isinstance(vocab_terms, dict)
      assert isinstance(vocab_grps, dict)
  
imports: import pytest
  import scipy.sparse
  from textacy import extract, representations
label_desc: Use image node_id 4 for calling a global function with example usage: test_build_grp_term_matrix(tokenized_docs, groups) without return types