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 delete_field_at_indices(self, field, indices):
      r"""
      See sample.py for details.
  
      """
      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)
  
      if field == "x":
          field_obj = getattr(sample, "y")
          del_field = field_obj.delete_at_indices(indices)
          setattr(sample, "y", del_field)
      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 6 for calling the POSSample obj's underlying member method code with example usage: obj.delete_field_at_indices(field, indices) and returns: sample