class_docstr: Mixin that contain utilities for preparing image features.
class_docstr_tok: ["Mixin","that","contain","utilities","for","preparing","image","features","."]
docstr: Converts `PIL.Image.Image` to RGB format.
  
  Args:
      image (`PIL.Image.Image`):
          The image to convert.
docstr_tok: ["Converts","`","PIL.Image.Image","`","to","RGB","format",".","Args",":","image","(","`","PIL.Image.Image","`",")",":","The","image","to","convert","."]
code: def convert_rgb(self, image):
      """
      Converts `PIL.Image.Image` to RGB format.
  
      Args:
          image (`PIL.Image.Image`):
              The image to convert.
      """
      self._ensure_format_supported(image)
      if not isinstance(image, PIL.Image.Image):
          return image
  
      return image.convert("RGB")
  
imports: import os
  from typing import TYPE_CHECKING, List, Tuple, Union
  import numpy
  from packaging import version
  import requests
  from .utils import ExplicitEnum, is_jax_tensor, is_tf_tensor, is_torch_available, is_torch_tensor, is_vision_available, to_numpy
  from .utils.constants import IMAGENET_DEFAULT_MEAN, IMAGENET_DEFAULT_STD, IMAGENET_STANDARD_MEAN, IMAGENET_STANDARD_STD
label_desc: Use image node_id 3 for calling the ImageFeatureExtractionMixin obj's underlying member method code with example usage: obj.convert_rgb(image) and returns: image, image