def _is_spectral_cube(obj):
    try:
        from spectral_cube import SpectralCube
        return isinstance(obj, SpectralCube)
    except __HOLE__:
        return False
dataset/ETHPy150Open glue-viz/glue/glue/external/pvextractor/pvextractor.py/_is_spectral_cube