class_docstr: Transform.  This can be used with the procedural API, or with the standard
  Image.point() method.
  
  Will return the output profile in the output.info['icc_profile'].
class_docstr_tok: ["Transform",".","This","can","be","used","with","the","procedural","API",",","or","with","the","standard","Image.point","(",")","method",".","Will","return","the","output","profile","in","the","output.info","[","'icc_profile","'","]","."]
code: def apply(self, im, imOut=None):
      im.load()
      if imOut is None:
          imOut = Image.new(self.output_mode, im.size, None)
      self.transform.apply(im.im.id, imOut.im.id)
      imOut.info["icc_profile"] = self.output_profile.tobytes()
      return imOut
  
imports: from __future__ import print_function
  import sys
  from PIL import Image
  from PIL._util import isStringType
label_desc: Use image node_id 3 for calling the ImageCmsTransform obj's underlying member method code with example usage: obj.apply(im, imOut) and returns: imOut