<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_expected_max_value(self):
 """ Returns max value of image `MimeType` format and raises an error if it is not an image format Note: For `MimeType.TIFF_d32f` it will return ``1.0`` as that is expected maximum for an image even though it could be higher. :return: A maximum value of specified image format :rtype: int or float :raises: ValueError """

        try:
            return {
                MimeType.TIFF: 65535,
                MimeType.TIFF_d8: 255,
                MimeType.TIFF_d16: 65535,
                MimeType.TIFF_d32f: 1.0,
                MimeType.PNG: 255,
                MimeType.JPG: 255,
                MimeType.JP2: 10000
            }[self]
        except IndexError:
            raise ValueError('Type {} is not supported by this method'.format(self))