code: def get_str_replacement_series(replacement, bool_mask):
      """
      Get replacement series with replacement at
      Places marked by bool mask and empty other wise
      """
      word_ser = cudf.Series(cudf.core.column.full(len(bool_mask), ""))
      word_ser.iloc[bool_mask] = replacement
  
      return word_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 1 for calling a global function with example usage: get_str_replacement_series(replacement, bool_mask) and returns: word_ser