def parse_devices(devices: str | list | torch.device) -> list:
        """Parses devices for multi-GPU training."""
        if isinstance(devices, list):
            return devices
        return [devices]
Parses devices for multi-GPU training.
src/anomalib/engine/accelerator/xpu.py