class_docstr: Removed ignored elements from the pipeline.
  
  Required Keys:
  
  - gt_ignored
  - gt_polygons (optional)
  - gt_bboxes (optional)
  - gt_bboxes_labels (optional)
  - gt_texts (optional)
  
  Modified Keys:
  
  - gt_ignored
  - gt_polygons (optional)
  - gt_bboxes (optional)
  - gt_bboxes_labels (optional)
  - gt_texts (optional)
class_docstr_tok: ["Removed","ignored","elements","from","the","pipeline",".","Required","Keys",":","-","gt_ignored","-","gt_polygons","(","optional",")","-","gt_bboxes","(","optional",")","-","gt_bboxes_labels","(","optional",")","-","gt_texts","(","optional",")","Modified","Keys",":","-","gt_ignored","-","gt_polygons","(","optional",")","-","gt_bboxes","(","optional",")","-","gt_bboxes_labels","(","optional",")","-","gt_texts","(","optional",")"]
code: def transform(self, results: Dict) -> Dict:
      remove_inds = np.where(results["gt_ignored"])[0]
      if len(remove_inds) == len(results["gt_ignored"]):
          return None
      return remove_pipeline_elements(results, remove_inds)
  
imports: import math
  from typing import Dict, Tuple
  import cv2
  import mmcv
  import numpy
  from mmcv.transforms import Resize
  from mmcv.transforms.base import BaseTransform
  from mmcv.transforms.utils import avoid_cache_randomness, cache_randomness
  from mmocr.registry import TRANSFORMS
  from mmocr.utils import bbox2poly, crop_polygon, is_poly_inside_rect, poly2bbox, poly2shapely, poly_make_valid, remove_pipeline_elements, rescale_polygon, shapely2poly
  from .wrappers import ImgAugWrapper
label_desc: Use image node_id 1 for calling the RemoveIgnored obj's underlying member method code with example usage: obj.transform(results) and returns: remove_pipeline_elements, None