def METHOD_NAME(device: Optional[Union[str, Device]] = None) -> None:
    """
    Sets the globally used default :class:`~heat.core.device.Device`.
    Parameters
    ----------
    device : str or Device
        The device to be set
    """
    global __default_device
    __default_device = sanitize_device(device)