code: def assert_close(
      actual: Tensor,
      expected: Tensor,
      *,
      rtol: Optional[float] = None,
      atol: Optional[float] = None,
      **kwargs: Any,
  ) -> None:
      if rtol is None and atol is None:
          # `torch.testing.assert_close` used different default tolerances than `torch.testing.assert_allclose`.
          # TODO: remove this special handling as soon as https://github.com/kornia/kornia/issues/1134 is resolved
          #  Basically, this whole wrapper function can be removed and `torch.testing.assert_close` can be used
          #  directly.
          rtol, atol = _default_tolerances(actual, expected)
  
      return _assert_close(
          actual,
          expected,
          rtol=rtol,
          atol=atol,
          # this is the default value for torch>=1.10, but not for torch==1.9
          # TODO: remove this if kornia relies on torch>=1.10
          check_stride=False,
          equal_nan=False,
          **kwargs,
      )
  
imports: import importlib.util
  import math
  from abc import ABC, abstractmethod
  from copy import deepcopy
  from itertools import product
  from typing import Any, Callable, Dict, Iterator, Optional, Sequence, Tuple, TypeVar, Union
  import torch
  from torch.autograd import gradcheck
  from torch.testing import assert_close
  from kornia.core import Device, Dtype, Tensor, eye, tensor
label_desc: Use image node_id 16 for calling a global function with example usage: assert_close(actual, expected) and returns: _assert_close