code: def test_aggregate_term_variants():
      # TODO: the actual results are NOT what i'd expect; figure out why
      terms = set(
          [
              "vice versa",
              "vice-versa",
              "vice/versa",
              "BJD",
              "Burton Jacob DeWilde",
              "the big black cat named Rico",
              "the black cat named Rico",
          ]
      )
      result1 = utils.aggregate_term_variants(terms)
      result2 = utils.aggregate_term_variants(
          terms, acro_defs={"BJD": "Burton Jacob DeWilde"}
      )
      assert len(result2) <= len(result1) <= len(terms)
  
file_path: textacy/tests/extract/test_extract_utils.py
imports: import pytest
  import textacy
  from textacy.extract import utils
label_desc: Use image node_id 3 for calling a global function with example usage: test_aggregate_term_variants() without return types