code: def test_replace_suffix():
      # test 'ing' -> 's'
      word_str_ser = cudf.Series(
          ["shopping", "parking", "drinking", "sing", "bing"]
      )
      can_replace_mask = cudf.Series([True, True, True, False, False])
      got = replace_suffix(word_str_ser, "ing", "s", can_replace_mask)
      expect = ["shopps", "parks", "drinks", "sing", "bing"]
      assert sorted(list(got.to_pandas().values)) == sorted(expect)
  
      # basic test 'ies' -> 's'
      word_str_ser = cudf.Series(["shops", "ties"])
      can_replace_mask = cudf.Series([False, True])
      got = replace_suffix(word_str_ser, "ies", "i", can_replace_mask)
  
      expect = ["shops", "ti"]
      assert sorted(list(got.to_pandas().values)) == sorted(expect)
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_replace_suffix() without return types