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: Delete items of given scopes of field value.
  
  :param str field: field name
  :param list of int|list|slice indices:
      shape：indices_num
      each index can be int indicate delete single item or their 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.
  :return: Modified Sample
docstr_tok: ["Delete","items","of","given","scopes","of","field","value",".",":","param","str","field",":","field","name",":","param","list","of","int|list|slice","indices",":","shape\uff1aindices_num","each","index","can","be","int","indicate","delete","single","item","or","their","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",".",":","return",":","Modified","Sample"]
code: def delete_field_at_indices(self, field, indices):
      r"""
      Delete items of given scopes of field value.
  
      :param str field: field name
      :param list of int|list|slice indices:
          shape：indices_num
          each index can be int indicate delete single item or their 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.
      :return: Modified Sample
  
      """
      sample = self.clone(self)
      field_obj = getattr(sample, field)
  
      assert isinstance(field_obj, (ListField, TextField))
      del_field = field_obj.delete_at_indices(indices)
      setattr(sample, field, del_field)
  
      return sample
  
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 15 for calling the Sample obj's underlying member method code with example usage: obj.delete_field_at_indices(field, indices) and returns: sample