def _check_method(method):
    if (method not in compression_methods):
        if (method in _blosc_methods):
            raise ValueError(('Cannot use %s compression; blosc package is not importable.' % method))
        else:
            raise ValueError(('Unknown compression method "%s"' % method))
def _check_method(method):
    if (method not in compression_methods):
        if (method in _blosc_methods):
            raise ValueError(('Cannot use %s compression; blosc package is not importable.' % method))
        else:
            raise ValueError(('Unknown compression method "%s"' % method))