def get_pil_version():
    try:
        __import__('PIL', fromlist=[str('Image')])
        return (0,)
    except ImportError:
        return None
Return Image Magick version or None if it is unavailable
dataset/ETHPy150Open beetbox/beets/beets/util/artresizer.py/get_pil_version