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: Insert items of multi given scopes before indices of field value
  at the same time.
  
  Stay away from the complex function !!!
  Be careful of your input list shape.
  
  :param str field: field name
  :param indices: list of int, shape：indices_num, list like [1, 2, 3]
  :param items: list of str/list,
      shape: indices_num, correspond to indices
  :return: Modified Sample
docstr_tok: ["Insert","items","of","multi","given","scopes","before","indices","of","field","value","at","the","same","time",".","Stay","away","from","the","complex","function","!","!","!","Be","careful","of","your","input","list","shape",".",":","param","str","field",":","field","name",":","param","indices",":","list","of","int",",","shape\uff1aindices_num",",","list","like","[","1",",","2",",","3","]",":","param","items",":","list","of","str\/list",",","shape",":","indices_num",",","correspond","to","indices",":","return",":","Modified","Sample"]
code: def insert_field_before_indices(self, field, indices, items):
      r"""
      Insert items of multi given scopes before indices of field value
      at the same time.
  
      Stay away from the complex function !!!
      Be careful of your input list shape.
  
      :param str field: field name
      :param indices: list of int, shape：indices_num, list like [1, 2, 3]
      :param items: list of str/list,
          shape: indices_num, correspond to indices
      :return: Modified Sample
  
      """
      sample = self.clone(self)
  
      field_obj = getattr(sample, field)
      assert isinstance(field_obj, (ListField, TextField))
      rep_obj = field_obj.insert_before_indices(indices, items)
      setattr(sample, field, rep_obj)
  
      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 17 for calling the Sample obj's underlying member method code with example usage: obj.insert_field_before_indices(field, indices, items) and returns: sample