Create an ImageMode from its string representation.
mode – String representation of the mode. This is the same as the enum attribute name, e.g. ImageMode.from_mode_string("RGB") would return ImageMode.RGB.
ImageMode.from_mode_string("RGB")
ImageMode.RGB