class_docstr: A helper class that represents input string that to be modified.
  
  Text that Sample contains parsed in data set,
  ``TextField`` provides multiple methods for Sample to modify.
  
  Support sentence level and word level modification,
  default using word level API.
docstr: Replace words at indices and set their mask to MODIFIED_MASK.
  
  :param [int|list\slice] indices:
      each index can be int indicate replace single item
          or their list like [1, 2, 3].
      each index can be list like (0,3) indicate replace items
          from 0 to 3(not included) or their list like [(0, 3), (5,6)]
      each index can be slice which would be convert to list.
  :param [str|list|tuple] new_items: items corresponding indices.
  :return: Replaced TextField object.
docstr_tok: ["Replace","words","at","indices","and","set","their","mask","to","MODIFIED_MASK",".",":","param","[","int|list\\slice","]","indices",":","each","index","can","be","int","indicate","replace","single","item","or","their","list","like","[","1",",","2",",","3","]",".","each","index","can","be","list","like","(","0,3",")","indicate","replace","items","from","0","to","3","(","not","included",")","or","their","list","like","[","(","0",",","3",")",",","(","5,6",")","]","each","index","can","be","slice","which","would","be","convert","to","list",".",":","param","[","str|list|tuple","]","new_items",":","items","corresponding","indices",".",":","return",":","Replaced","TextField","object","."]
code: def replace_at_indices(self, indices, new_items):
      r"""
      Replace words at indices and set their mask to MODIFIED_MASK.
  
      :param [int|list\slice] indices:
          each index can be int indicate replace single item
              or their list like [1, 2, 3].
          each index can be list like (0,3) indicate replace items
              from 0 to 3(not included) or their list like [(0, 3), (5,6)]
          each index can be slice which would be convert to list.
      :param [str|list|tuple] new_items: items corresponding indices.
      :return: Replaced TextField object.
  
      """
      replace_mask = self._get_mirror_mask(new_items)
      mask_value = replace_at_scopes(self.mask, indices, replace_mask)
      field_value = replace_at_scopes(self.words, indices, new_items)
  
      return self.new_field(field_value, mask=mask_value)
  
imports: from .field import Field
  from ....common.utils.list_op import *
  from ....common.preprocess.en_processor import EnProcessor
  from ....common.settings import ORIGIN, TASK_MASK, MODIFIED_MASK
label_desc: Use image node_id 9 for calling the TextField obj's underlying member method code with example usage: obj.replace_at_indices(indices, new_items) and returns: self