docstr: Transform the image data to numpy format.
  
  Args:
      to_rgb (bool): whether to convert BGR to RGB
      with_mixup (bool): whether or not to mixup image and gt_bbbox/gt_score
docstr_tok: ["Transform","the","image","data","to","numpy","format",".","Args",":","to_rgb","(","bool",")",":","whether","to","convert","BGR","to","RGB","with_mixup","(","bool",")",":","whether","or","not","to","mixup","image","and","gt_bbbox\/gt_score"]
code: def __init__(self, to_rgb=True, with_mixup=False):
      """Transform the image data to numpy format.
  
      Args:
          to_rgb (bool): whether to convert BGR to RGB
          with_mixup (bool): whether or not to mixup image and gt_bbbox/gt_score
      """
      self.to_rgb = to_rgb
      self.with_mixup = with_mixup
  
imports: from __future__ import absolute_import
  from __future__ import print_function
  from __future__ import division
  import os
  import random
  import cv2
  import numpy
  from PIL import Image
label_desc: Use image node_id 1 to create a new DecodeImage object from inherited base classes: object with example: obj = DecodeImage(to_rgb, with_mixup)