class_docstr: POS Sample class to hold the necessary info and provide atomic operations.
docstr: See sample.py for details.
docstr_tok: ["See","sample.py","for","details","."]
code: def insert_field_after_indices(self, field, indices, items):
      r"""
      See sample.py for details.
  
      """
      sample = self.clone(self)
  
      field_obj = getattr(sample, field)
      assert isinstance(field_obj, (ListField, TextField))
      rep_obj = field_obj.insert_after_indices(indices, items)
      setattr(sample, field, rep_obj)
  
      if field == "x":
          field_obj = getattr(sample, "y")
          if isinstance(items[0], str):
              rep_obj = field_obj.insert_after_indices(
                  indices, len(items) * ["UNK"]
              )
          elif isinstance(items[0], list):
              rep_obj = field_obj.insert_after_indices(
                  indices, [["UNK"] * len(i) for i in items]
              )
          else:
              raise Exception("Unsupported items types!")
          setattr(sample, "y", rep_obj)
      else:
          raise Exception("Not support non-x fields!")
  
      return sample
  
file_path: textflint/textflint/input/component/sample/pos_sample.py
imports: from .sample import Sample
  from ..field import ListField, TextField
label_desc: Use image node_id 8 for calling the POSSample obj's underlying member method code with example usage: obj.insert_field_after_indices(field, indices, items) and returns: sample