code: def test_step3():
      word_str_ser_ls = [
          "triplicate",
          "formative",
          "formalize",
          "electriciti",
          "electriciti",
          "hopeful",
          "goodness",
      ]
      expect = [
          "triplic",
          "form",
          "formal",
          "electric",
          "electric",
          "hope",
          "good",
      ]
  
      word_str_ser = cudf.Series(word_str_ser_ls)
      st = PorterStemmer()
      got = st._step3(word_str_ser)
      assert list(got.to_pandas().values) == expect
  
      # mask test
      expect = expect[:-2] + ["hopeful", "goodness"]
      mask = cudf.Series([True] * (len(expect) - 2) + [False] * 2)
      got = st._step3(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 5 for calling a global function with example usage: test_step3() without return types