def requires_version(library, min_version):
 return np.testing.dec.skipif((not check_version(library, min_version)), ('Requires %s version >= %s' % (library, min_version)))

def requires_version ( library , min_version ) : return np . testing . dec . skipif ( ( not check_version ( library , min_version ) ) , ( 'Requires %s version >= %s' % ( library , min_version ) ) )
helper for testing .