code: def torch_version_le(major: int, minor: int, patch: int) -> bool:
      _version = version.parse(torch_version())
      return _version <= version.parse(f"{major}.{minor}.{patch}")
  
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 3 for calling a global function with example usage: torch_version_le(major, minor, patch) and returns: unknown