def liveness_check(config: Config = Depends(get_config)) -> JSONResponse:
    """
    This liveness check endpoint does a quick status check, and error out if any component encounters unrecoverable
    issues. This only does a check on the cuda devices right now.
    Docker schedulers could leverage this endpoint to decide whether to restart the Marqo container.

    Returns:
        200 - if all checks pass
        500 - if any check fails
    """
    config.device_manager.cuda_device_health_check()
    return JSONResponse(content={"status": "ok"}, status_code=200)

    This liveness check endpoint does a quick status check, and error out if any component encounters unrecoverable
    issues. This only does a check on the cuda devices right now.
    Docker schedulers could leverage this endpoint to decide whether to restart the Marqo container.

    Returns:
        200 - if all checks pass
        500 - if any check fails
    
src/marqo/inference/native_inference/remote/server/inference_api.py