def METHOD_NAME(self) -> torch.device:
    """
    The default ``torch`` device for the current worker.
    """
    if self._worker_local_default_device is not None:
        return self._worker_local_default_device
    else:
        if self.devices:
            device_id = self.devices[self.worker_id]
            if device_id >= 0:
                device = torch.device(f"cuda:{device_id}")
            else:
                device = torch.device("cpu")
        elif torch.cuda.is_available():
            device = torch.device("cuda")
        else:
            device = torch.device("cpu")
        self._worker_local_default_device = device
        return device