code: def test_step2():
      word_str_ser_ls = [
          "relational",
          "conditional",
          "rational",
          "valenci",
          "hesitanci",
          "digitizer",
          "conformabli",
          "radicalli",
          "differentli",
          "vileli",
          "analogousli",
          "vietnamization",
          "predication",
          "operator",
          "feudalism",
          "decisiveness",
          "hopefulness",
          "callousness",
          "formaliti",
          "sensitiviti",
          "sensibiliti",
      ]
  
      expect = [
          "relate",
          "condition",
          "rational",
          "valence",
          "hesitance",
          "digitize",
          "conformable",
          "radical",
          "different",
          "vile",
          "analogous",
          "vietnamize",
          "predicate",
          "operate",
          "feudal",
          "decisive",
          "hopeful",
          "callous",
          "formal",
          "sensitive",
          "sensible",
      ]
  
      word_str_ser = cudf.Series(word_str_ser_ls)
      st = PorterStemmer()
      got = st._step2(word_str_ser)
      assert list(got.to_pandas().values) == expect
  
      # mask test
      expect = expect[:-3] + ["formaliti", "sensitiviti", "sensibiliti"]
      mask = cudf.Series([True] * (len(expect) - 3) + [False] * 3)
      got = st._step2(word_str_ser, mask)
      assert list(got.to_pandas().values) == expect
  
file_path: cuml/python/cuml/tests/stemmer_tests/test_steps.py
imports: from cuml.preprocessing.text.stem.porter_stemmer import PorterStemmer
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 4 for calling a global function with example usage: test_step2() without return types