code: def __init__(self, from_colorspace, to_colorspace):
      super(_IntensityChannelBasedApplier, self).__init__()
  
      # TODO maybe add CIE, Luv?
      valid_from_colorspaces = [
          self.RGB,
          self.BGR,
          self.Lab,
          self.HLS,
          self.HSV,
      ]
      assert (
          from_colorspace in valid_from_colorspaces
      ), "Expected 'from_colorspace' to be one of %s, got %s." % (
          valid_from_colorspaces,
          from_colorspace,
      )
  
      valid_to_colorspaces = [self.Lab, self.HLS, self.HSV]
      assert (
          to_colorspace in valid_to_colorspaces
      ), "Expected 'to_colorspace' to be one of %s, got %s." % (
          valid_to_colorspaces,
          to_colorspace,
      )
  
      self.from_colorspace = from_colorspace
      self.to_colorspace = to_colorspace
  
imports: from __future__ import print_function, division, absolute_import
  import numpy
  import six.moves
  import skimage.exposure
  import cv2
  import imgaug
  from imgaug.imgaug import _normalize_cv2_input_arr_
  from .None import meta
  from .None import color
  from ..None import parameters
  from ..None import dtypes
  from ..augmentables.batches import _BatchInAugmentation
label_desc: Use image node_id 1 to create a new _IntensityChannelBasedApplier object from inherited base classes: object with example: obj = _IntensityChannelBasedApplier(from_colorspace, to_colorspace)