code: def get_index_replacement_series(
      word_str_ser, replacment_index, bool_mask
  ):
      """
      Get replacement series with nulls at places marked by bool mask
      """
      valid_indexes = ~bool_mask
      word_str_ser = word_str_ser.str.get(replacment_index)
      word_str_ser = cudf.Series(word_str_ser)
      word_str_ser.iloc[valid_indexes] = ""
  
      return word_str_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 2 for calling a global function with example usage: get_index_replacement_series(word_str_ser, replacment_index, bool_mask) and returns: word_str_ser