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 index:
      can be int indicate replace single item or their list like [1, 2, 3]
      can be list like (0,3) indicate replace items
          from 0 to 3(not included) or their list like [(0, 3), (5,6)]
      can be slice which would be convert to list.
  :param str|list\tuple new_items: items corresponding index.
  :return: Replaced TextField object.
docstr_tok: ["Replace","words","at","indices","and","set","their","mask","to","MODIFIED_MASK",".",":","param","int\\list\\slice","index",":","can","be","int","indicate","replace","single","item","or","their","list","like","[","1",",","2",",","3","]","can","be","list","like","(","0,3",")","indicate","replace","items","from","0","to","3","(","not","included",")","or","their","list","like","[","(","0",",","3",")",",","(","5,6",")","]","can","be","slice","which","would","be","convert","to","list",".",":","param","str|list\\tuple","new_items",":","items","corresponding","index",".",":","return",":","Replaced","TextField","object","."]
code: def replace_at_index(self, index, new_items):
      r"""
      Replace words at indices and set their mask to MODIFIED_MASK.
  
      :param int\list\slice index:
          can be int indicate replace single item or their list like [1, 2, 3]
          can be list like (0,3) indicate replace items
              from 0 to 3(not included) or their list like [(0, 3), (5,6)]
          can be slice which would be convert to list.
      :param str|list\tuple new_items: items corresponding index.
      :return: Replaced TextField object.
  
      """
      return self.replace_at_indices([index], [new_items])
  
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 10 for calling the TextField obj's underlying member method code with example usage: obj.replace_at_index(index, new_items) and returns: self