code: def torch_version() -> str:
      """Parse the `torch.__version__` variable and removes +cu*/cpu."""
      return torch.__version__.split("+")[0]
  
file_path: kornia/kornia/utils/_compat.py
imports: from typing import TYPE_CHECKING, Callable, ContextManager, List, Optional, Tuple, TypeVar
  import torch
  from packaging import version
  from torch import Tensor
label_desc: Use image node_id 1 for calling a global function with example usage: torch_version() and returns: torch