def _raise_warnings(image_properties):
 ip = image_properties
 if ip.unsupported_dtype:
  warn('Non-standard image type; displaying image with stretched contrast.')
 if ip.low_data_range:
  warn('Low image data range; displaying image with stretched contrast.')
 if ip.out_of_range_float:
  warn('Float image out of standard range; displaying image with stretched contrast.')

def _raise_warnings ( image_properties ) : ip = image_properties if ip . unsupported_dtype : warn ( 'Non-standard image type; displaying image with stretched contrast.' ) if ip . low_data_range : warn ( 'Low image data range; displaying image with stretched contrast.' ) if ip . out_of_range_float : warn ( 'Float image out of standard range; displaying image with stretched contrast.' )
raise the appropriate warning for each nonstandard image type .