class_docstr: Imagenet 2012, aka ILSVRC 2012.
class_docstr_tok: ["Imagenet","2012",",","aka","ILSVRC","2012","."]
docstr: Fix image color system and format starting from v 3.0.0.
docstr_tok: ["Fix","image","color","system","and","format","starting","from","v","3.0.0","."]
code: def _fix_image(self, image_fname, image):
      """Fix image color system and format starting from v 3.0.0."""
      if self.version < "3.0.0":
          return image
      if image_fname in CMYK_IMAGES:
          image = io.BytesIO(
              tfds.core.utils.jpeg_cmyk_to_rgb(image.read())
          )
      elif image_fname in PNG_IMAGES:
          image = io.BytesIO(tfds.core.utils.png_to_jpeg(image.read()))
      return image
  
file_path: datasets/tensorflow_datasets/datasets/imagenet2012/imagenet2012_dataset_builder.py
imports: import io
  import os
  from absl import logging
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  from tensorflow_datasets.datasets.imagenet2012 import imagenet_common
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the Builder obj's underlying member method code with example usage: obj._fix_image(image_fname, image) and returns: image, image