class_docstr: Convert into another color space.  
class_docstr_tok: ["Convert","into","another","color","space","."]
docstr: Args:
      mode: OpenCV color space conversion code (e.g., ``cv2.COLOR_BGR2HSV``)
      keepdims (bool): keep the dimension of image unchanged if OpenCV
          changes it.
docstr_tok: ["Args",":","mode",":","OpenCV","color","space","conversion","code","(","e.g.",",","``","cv2.COLOR_BGR2HSV","``",")","keepdims","(","bool",")",":","keep","the","dimension","of","image","unchanged","if","OpenCV","changes","it","."]
code: def __init__(self, mode, keepdims=True):
      """
      Args:
          mode: OpenCV color space conversion code (e.g., ``cv2.COLOR_BGR2HSV``)
          keepdims (bool): keep the dimension of image unchanged if OpenCV
              changes it.
      """
      super(ColorSpace, self).__init__()
      self._init(locals())
  
file_path: tensorpack/tensorpack/dataflow/imgaug/convert.py
imports: import numpy
  import cv2
  from .base import PhotometricAugmentor
label_desc: Use image node_id 1 to create a new ColorSpace object from inherited base classes: PhotometricAugmentor with example: obj = ColorSpace(mode, keepdims)