code: def test_step5a():
      word_str_ser_ls = ["probate", "rate", "cease", "ones"]
      word_str_ser = cudf.Series(word_str_ser_ls)
  
      expect = ["probat", "rate", "ceas", "ones"]
      st = PorterStemmer()
      got = st._step5a(word_str_ser)
      assert list(got.to_pandas().values) == expect
  
      # mask test
      expect = expect[:-2] + ["cease", "ones"]
      mask = cudf.Series([True] * (len(expect) - 2) + [False] * 2)
      got = st._step5a(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 7 for calling a global function with example usage: test_step5a() without return types