code: def test_terms_and_grp_list(self, grp_vectorizer_and_gtm):
      grp_vectorizer, gtm = grp_vectorizer_and_gtm
      assert isinstance(grp_vectorizer.terms_list, list)
      assert isinstance(grp_vectorizer.grps_list, list)
      assert isinstance(grp_vectorizer.terms_list[0], str)
      assert len(grp_vectorizer.terms_list) == len(
          grp_vectorizer.vocabulary_terms
      )
      assert len(grp_vectorizer.terms_list) == gtm.shape[1]
      assert grp_vectorizer.terms_list == sorted(
          grp_vectorizer.terms_list
      )
      assert len(grp_vectorizer.grps_list) == len(
          grp_vectorizer.vocabulary_grps
      )
      assert len(grp_vectorizer.grps_list) == gtm.shape[0]
      assert grp_vectorizer.grps_list == sorted(
          grp_vectorizer.grps_list
      )
  
imports: import pytest
  import numpy
  from scipy.sparse import coo_matrix
  from textacy import extract, representations
label_desc: Use image node_id 3 for calling the TestGroupVectorizer obj's underlying member method code with example usage: obj.test_terms_and_grp_list(grp_vectorizer_and_gtm) without return types