from torchmetrics.utilities.imports import _module_available
_PL_AVAILABLE = _module_available('pytorch_lightning')