def requires_img_lib():
 from ..io import _check_img_lib
 if sys.platform.startswith('win'):
  has_img_lib = False
 else:
  has_img_lib = (not all(((c is None) for c in _check_img_lib())))
 return np.testing.dec.skipif((not has_img_lib), 'imageio or PIL required')

def requires_img_lib ( ) : from . . io import _check_img_lib if sys . platform . startswith ( 'win' ) : has_img_lib = False else : has_img_lib = ( not all ( ( ( c is None ) for c in _check_img_lib ( ) ) ) ) return np . testing . dec . skipif ( ( not has_img_lib ) , 'imageio or PIL required' )
decorator for tests that require an image library .