class_docstr: NER Sample class to hold the necessary info and provide atomic operations.
class_docstr_tok: ["NER","Sample","class","to","hold","the","necessary","info","and","provide","atomic","operations","."]
docstr: Insert tokens and ner tags.Assuming the tag of new_item is O.
  
  :param str field:field string
  :param list indices: list of int
          shape：indices_num, list like [1, 2, 3]
  :param list items: list of str/list
          shape: indices_num, correspond to indices
  :return: Modified NERSample
docstr_tok: ["Insert","tokens","and","ner","tags.Assuming","the","tag","of","new_item","is","O.",":","param","str","field",":","field","string",":","param","list","indices",":","list","of","int","shape\uff1aindices_num",",","list","like","[","1",",","2",",","3","]",":","param","list","items",":","list","of","str\/list","shape",":","indices_num",",","correspond","to","indices",":","return",":","Modified","NERSample"]
code: def insert_field_before_indices(self, field, indices, items):
      r"""
      Insert tokens and ner tags.Assuming the tag of new_item is O.
  
      :param str field:field string
      :param list indices: list of int
              shape：indices_num, list like [1, 2, 3]
      :param list items: list of str/list
              shape: indices_num, correspond to indices
      :return: Modified NERSample
  
      """
      assert field == "text"
      sample = self.clone(self)
      sample = super(NERSample, sample).insert_field_before_indices(
          field, indices, items
      )
      # add 'O' tag to insert token
      insert_tags = get_align_seq(items, "O")
      sample = super(NERSample, sample).insert_field_before_indices(
          "tags", indices, insert_tags
      )
  
      return sample
  
imports: from .sample import Sample
  from ..field import ListField, TextField
  from ....common.utils.list_op import get_align_seq
label_desc: Use image node_id 9 for calling the NERSample obj's underlying member method code with example usage: obj.insert_field_before_indices(field, indices, items) and returns: sample