class_docstr: Transformer for common image processing stages.
docstr: Formats the image to the given image format
  
  Args:
      format (int): The format to convert to, please see OpenCV cvtColor function documentation for all formats
docstr_tok: ["Formats","the","image","to","the","given","image","format","Args",":","format","(","int",")",":","The","format","to","convert","to",",","please","see","OpenCV","cvtColor","function","documentation","for","all","formats"]
code: def colorFormat(self, format):
      """
      Formats the image to the given image format
  
      Args:
          format (int): The format to convert to, please see OpenCV cvtColor function documentation for all formats
  
      """
      self._java_obj.colorFormat(format)
      return self
  
imports: import sys
  from typing import List
  import pyspark
  from pyspark import SparkContext
  from pyspark.ml.common import inherit_doc
  from pyspark.sql.types import *
  from pyspark.sql.types import Row, _create_row
  import numpy
  from synapse.ml.opencv._ImageTransformer import _ImageTransformer
  from pyspark.ml.common import inherit_doc
label_desc: Use image node_id 4 for calling the ImageTransformer obj's underlying member method code with example usage: obj.colorFormat(format) and returns: self