src/transformers/models/imagegpt/image_processing_imagegpt.py/ImageGPTImageProcessor/__init__
class ImageGPTImageProcessor:    def __init__(
        self,
        # clusters is a first argument to maintain backwards compatibility with the old ImageGPTFeatureExtractor
        clusters: Optional[np.ndarray] = None,
        do_resize: bool = True,
        size: Dict[str, int] = None,
        resample: PILImageResampling = PILImageResampling.BILINEAR,
        do_normalize: bool = True,
        do_color_quantize: bool = True,
        **kwargs,
    ) -> None:
        super().__init__(**kwargs)
        size = size if size is not None else {"height": 256, "width": 256}
        size = get_size_dict(size)
        self.clusters = clusters
        self.do_resize = do_resize
        self.size = size
        self.resample = resample
        self.do_normalize = do_normalize
        self.do_color_quantize = do_color_quantize