class_docstr: Base Sample class to hold the necessary info and provide atomic operations
class_docstr_tok: ["Base","Sample","class","to","hold","the","necessary","info","and","provide","atomic","operations"]
docstr: Replace items of given scope of field value.
  
  Be careful of your input list shape.
  
  :param str field: field name
  :param int|list|slice index:
      can be int indicate replace single item or list like [1, 2, 3],
      can be list like (0,3) indicate replace items
          from 0 to 3(not included),
      can be slice which would be convert to list.
  :param str|list items: shape: indices_num, correspond to field_sub_items
  :return: Modified Sample
docstr_tok: ["Replace","items","of","given","scope","of","field","value",".","Be","careful","of","your","input","list","shape",".",":","param","str","field",":","field","name",":","param","int|list|slice","index",":","can","be","int","indicate","replace","single","item","or","list","like","[","1",",","2",",","3","]",",","can","be","list","like","(","0,3",")","indicate","replace","items","from","0","to","3","(","not","included",")",",","can","be","slice","which","would","be","convert","to","list",".",":","param","str|list","items",":","shape",":","indices_num",",","correspond","to","field_sub_items",":","return",":","Modified","Sample"]
code: def replace_field_at_index(self, field, index, items):
      r"""
      Replace items of given scope of field value.
  
      Be careful of your input list shape.
  
      :param str field: field name
      :param int|list|slice index:
          can be int indicate replace single item or list like [1, 2, 3],
          can be list like (0,3) indicate replace items
              from 0 to 3(not included),
          can be slice which would be convert to list.
      :param str|list items: shape: indices_num, correspond to field_sub_items
      :return: Modified Sample
  
      """
      return self.replace_field_at_indices(field, [index], [items])
  
imports: import copy
  from abc import ABC, abstractmethod
  from ..field import ListField, TextField
  from ....common.settings import MODIFIED_MASK
  from ....common.preprocess.en_processor import EnProcessor
label_desc: Use image node_id 13 for calling the Sample obj's underlying member method code with example usage: obj.replace_field_at_index(field, index, items) and returns: self