code: def inverse_pinhole_matrix(
      pinhole: Tensor, eps: float = 1e-6
  ) -> Tensor:
      r"""Return the inverted pinhole matrix from a pinhole model.
  
      .. note::
          This method is going to be deprecated in version 0.2 in favour of
          :attr:`kornia.PinholeCamera.intrinsics_inverse()`.
  
      Args:
          pinholes: tensor with pinhole models.
  
      Returns:
          tensor of inverted pinhole matrices.
  
      Shape:
          - Input: :math:`(N, 12)`
          - Output: :math:`(N, 4, 4)`
  
      Example:
          >>> rng = torch.manual_seed(0)
          >>> pinhole = torch.rand(1, 12)  # Nx12
          >>> inverse_pinhole_matrix(pinhole)  # Nx4x4
          tensor([[[ 2.0151,  0.0000, -0.1783,  0.0000],
                   [ 0.0000,  1.3017, -0.1719,  0.0000],
                   [ 0.0000,  0.0000,  1.0000,  0.0000],
                   [ 0.0000,  0.0000,  0.0000,  1.0000]]])
      """
      # warnings.warn("inverse_pinhole_matrix will be deprecated in version 0.2, "
      #              "use PinholeCamera.intrinsics_inverse() instead",
      #              PendingDeprecationWarning)
      if not (len(pinhole.shape) == 2 and pinhole.shape[1] == 12):
          raise AssertionError(pinhole.shape)
      # unpack pinhole values
      fx, fy, cx, cy = torch.chunk(pinhole[..., :4], 4, dim=1)  # Nx1
      # create output container
      k = eye(4, device=pinhole.device, dtype=pinhole.dtype)
      k = k.view(1, 4, 4).repeat(pinhole.shape[0], 1, 1)  # Nx4x4
      # fill output with inverse values
      k[..., 0, 0:1] = 1.0 / (fx + eps)
      k[..., 1, 1:2] = 1.0 / (fy + eps)
      k[..., 0, 2:3] = -1.0 * cx / (fx + eps)
      k[..., 1, 2:3] = -1.0 * cy / (fy + eps)
      return k
  
imports: from typing import Iterable, List, Union
  import torch
  from kornia.core import Device, Tensor, eye, stack, zeros
  from kornia.core.check import KORNIA_CHECK_SAME_DEVICE
  from kornia.geometry.conversions import convert_points_from_homogeneous, convert_points_to_homogeneous
  from kornia.geometry.linalg import inverse_transformation, transform_points
  from kornia.utils.helpers import _torch_inverse_cast
label_desc: Use image node_id 2 for calling a global function with example usage: inverse_pinhole_matrix(pinhole, eps) and returns: k