def inspect_image(image):
 status = base_status.copy()
 try:
  infos = _get_image_infos(image)
  try:
   for k in ['Size']:
    infos['Human_{0}'.format(k)] = _sizeof_fmt(int(infos[k]))
  except Exception:
   pass
  _valid(status, id_=image, out=infos)
 except Exception:
  _invalid(status, id_=image, out=traceback.format_exc(), comment='Image does not exist')
 return status

def inspect_image ( image ) : status = base_status . copy ( ) try : infos = _get_image_infos ( image ) try : for k in [ 'Size' ] : infos [ 'Human_{0}' . format ( k ) ] = _sizeof_fmt ( int ( infos [ k ] ) ) except Exception : pass _valid ( status , id_ = image , out = infos ) except Exception : _invalid ( status , id_ = image , out = traceback . format_exc ( ) , comment = 'Image does not exist' ) return status
retrieves image information .