src/transformers/integrations/integration_utils.py/is_ray_tune_available
def is_ray_tune_available():
    if not is_ray_available():
        return False
    return importlib.util.find_spec("ray.tune") is not None