class_docstr: Base Chinese Sample class to hold the necessary info and provide atomic operations
class_docstr_tok: ["Base","Chinese","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, (CnTextField, ListField))
      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 textflint.input.component.field.list_field import ListField
  from ..field import CnTextField
  from ....common.settings import MODIFIED_MASK
  from ....common.preprocess.cn_processor import CnProcessor
label_desc: Use image node_id 19 for calling the CnSample obj's underlying member method code with example usage: obj.insert_field_before_indices(field, indices, items) and returns: sample