code: def angle_to_rotation_matrix(angle: Tensor) -> Tensor:
      r"""Create a rotation matrix out of angles in degrees.
  
      Args:
          angle: tensor of angles in degrees, any shape :math:`(*)`.
  
      Returns:
          tensor of rotation matrices with shape :math:`(*, 2, 2)`.
  
      Example:
          >>> input = torch.rand(1, 3)  # Nx3
          >>> output = angle_to_rotation_matrix(input)  # Nx3x2x2
      """
      ang_rad = deg2rad(angle)
      cos_a: Tensor = cos(ang_rad)
      sin_a: Tensor = sin(ang_rad)
      return stack([cos_a, sin_a, -sin_a, cos_a], dim=-1).view(
          *angle.shape, 2, 2
      )
  
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 29 for calling a global function with example usage: angle_to_rotation_matrix(angle) and returns: stack