code: def ARKitQTVecs_to_ColmapQTVecs(
      qvec: Tensor, tvec: Tensor
  ) -> tuple[Tensor, Tensor]:
      r"""Converts output of Apple ARKit screen pose (in quaternion representation) to the camera-to-world
      transformation, expected by Colmap, also in quaternion representation.
  
      Args:
          qvec: ARKit rotation quaternion :math:`(B, 4)`, [x, y, z, w] format.
          tvec: translation vector :math:`(B, 3, 1)`, [x, y, z]
  
      Returns:
          qvec: Colmap rotation quaternion :math:`(B, 4)`, [w, x, y, z] format.
          tvec: translation vector :math:`(B, 3, 1)`, [x, y, z]
  
      Example:
          >>> q, t = tensor([0, 1, 0, 1.])[None], torch.ones(3).reshape(1, 3, 1)
          >>> ARKitQTVecs_to_ColmapQTVecs(q, t)
          (tensor([[0.7071, 0.0000, 0.7071, 0.0000]]), tensor([[[-1.0000],
                   [-1.0000],
                   [ 1.0000]]]))
      """
      # ToDo:  integrate QuaterniaonAPI
  
      Rcg = quaternion_to_rotation_matrix(qvec)
      Rcv, Tcv = camtoworld_graphics_to_vision_Rt(Rcg, tvec)
      R_colmap, t_colmap = camtoworld_to_worldtocam_Rt(Rcv, Tcv)
      t_colmap = t_colmap.reshape(-1, 3, 1)
      q_colmap = rotation_matrix_to_quaternion(R_colmap.contiguous())
      return q_colmap, t_colmap
  
imports: from __future__ import annotations
  from typing import Optional
  import torch
  import torch.nn.functional
  from kornia.constants import pi
  from kornia.core import Tensor, concatenate, cos, pad, sin, stack, tensor, where, zeros_like
  from kornia.core.check import KORNIA_CHECK, KORNIA_CHECK_SHAPE
  from kornia.utils import deprecated
  from kornia.utils.helpers import _torch_inverse_cast
label_desc: Use image node_id 45 for calling a global function with example usage: ARKitQTVecs_to_ColmapQTVecs(qvec, tvec) and returns: q_colmap,  t_colmap