code: def replace_suffix(
      word_str_ser, suffix, replacement, can_replace_mask
  ):
      """
      replaces string column with valid suffix with replacement
      """
  
      len_suffix = len(suffix)
      if replacement == "":
          stem_ser = get_stem_series(
              word_str_ser, len_suffix, can_replace_mask
          )
          return stem_ser
      else:
          stem_ser = get_stem_series(
              word_str_ser, len_suffix, can_replace_mask
          )
          if isinstance(replacement, str):
              replacement_ser = get_str_replacement_series(
                  replacement, can_replace_mask
              )
          if isinstance(replacement, int):
              replacement_ser = get_index_replacement_series(
                  word_str_ser, replacement, can_replace_mask
              )
          else:
              assert ValueError(
                  "replacement: {} value should be a string or a int".format(
                      replacement
                  )
              )
  
          return stem_ser + replacement_ser
  
imports: from cuml.internals.safe_imports import cpu_only_import
  from cuml.internals.safe_imports import gpu_only_import
  from cuml.internals.safe_imports import gpu_only_import_from
label_desc: Use image node_id 3 for calling a global function with example usage: replace_suffix(word_str_ser, suffix, replacement, can_replace_mask) and returns: stem_ser, unknown