code: def get_affine_matrix3d(
      translations: Tensor,
      center: Tensor,
      scale: Tensor,
      angles: Tensor,
      sxy: Optional[Tensor] = None,
      sxz: Optional[Tensor] = None,
      syx: Optional[Tensor] = None,
      syz: Optional[Tensor] = None,
      szx: Optional[Tensor] = None,
      szy: Optional[Tensor] = None,
  ) -> Tensor:
      r"""Compose 3d affine matrix from the components.
  
      Args:
          translations: tensor containing the translation vector (dx,dy,dz) with shape :math:`(B, 3)`.
          center: tensor containing the center vector (x,y,z) with shape :math:`(B, 3)`.
          scale: tensor containing the scale factor with shape :math:`(B)`.
          angle: axis angle vector containing the rotation angles in degrees in the form
              of (rx, ry, rz) with shape :math:`(B, 3)`. Internally it calls Rodrigues to compute
              the rotation matrix from axis-angle.
          sxy: tensor containing the shear factor in the xy-direction with shape :math:`(B)`.
          sxz: tensor containing the shear factor in the xz-direction with shape :math:`(B)`.
          syx: tensor containing the shear factor in the yx-direction with shape :math:`(B)`.
          syz: tensor containing the shear factor in the yz-direction with shape :math:`(B)`.
          szx: tensor containing the shear factor in the zx-direction with shape :math:`(B)`.
          szy: tensor containing the shear factor in the zy-direction with shape :math:`(B)`.
  
      Returns:
          the 3d affine transformation matrix :math:`(B, 3, 3)`.
  
      .. note::
          This function is often used in conjunction with :func:`warp_perspective`.
      """
      transform: Tensor = get_projective_transform(
          center, -angles, scale
      )
      transform[..., 3] += translations  # tx/ty/tz
  
      # pad transform to get Bx3x3
      transform_h = convert_affinematrix_to_homography3d(transform)
      if any(s is not None for s in [sxy, sxz, syx, syz, szx, szy]):
          shear_mat = get_shear_matrix3d(
              center, sxy, sxz, syx, syz, szx, szy
          )
          transform_h = transform_h @ shear_mat
  
      return transform_h
  
imports: from __future__ import annotations
  from typing import Optional
  import torch
  import torch.nn.functional
  from kornia.core import Tensor, concatenate, ones, ones_like, stack, tan, tensor, zeros
  from kornia.core.check import KORNIA_CHECK, KORNIA_CHECK_SHAPE
  from kornia.geometry.conversions import angle_to_rotation_matrix, axis_angle_to_rotation_matrix, convert_affinematrix_to_homography, convert_affinematrix_to_homography3d, deg2rad, normalize_homography, normalize_homography3d, normalize_pixel_coordinates
  from kornia.geometry.linalg import transform_points
  from kornia.utils import create_meshgrid, create_meshgrid3d, eye_like
  from kornia.utils.helpers import _torch_inverse_cast, _torch_solve_cast
label_desc: Use image node_id 13 for calling a global function with example usage: get_affine_matrix3d(translations, center, scale, angles, sxy, sxz, syx, syz, szx, szy) and returns: transform_h