code: def test_step1a():
      word_str_ser = cudf.Series(
          ["caresses", "ponies", "ties", "caress", "cats"]
      )
  
      st = PorterStemmer()
      got = st._step1a(word_str_ser)
  
      expect = ["caress", "poni", "tie", "caress", "cat"]
      assert list(got.to_pandas().values) == expect
  
      # mask test
      mask = cudf.Series([True, False, True, True, False])
      expect = ["caress", "ponies", "tie", "caress", "cats"]
      got = st._step1a(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 1 for calling a global function with example usage: test_step1a() without return types