def is_volume_pro_available():
    """Returns `True` if there is a volume pro card available.
    """
    try:
        map = tvtk.VolumeProMapper()
    except __HOLE__:
        return False
    else:
        return map.number_of_boards > 0
dataset/ETHPy150Open enthought/mayavi/mayavi/modules/volume.py/is_volume_pro_available