def xla_is_available() -> bool:
    """Return whether `torch_xla` is available in the system."""
    if importlib.util.find_spec("torch_xla") is not None:
        return True
    return False
Return whether `torch_xla` is available in the system.
kornia/utils/helpers.py