code: def _compute_rotation_matrix(
      angle: torch.Tensor, center: torch.Tensor
  ) -> torch.Tensor:
      """Compute a pure affine rotation matrix."""
      scale: torch.Tensor = ones_like(center)
      matrix: torch.Tensor = get_rotation_matrix2d(center, angle, scale)
      return matrix
  
imports: from typing import Optional, Tuple, Union
  import torch
  from torch import nn
  from kornia.core import ones, ones_like, zeros
  from kornia.filters import gaussian_blur2d
  from kornia.utils import _extract_device_dtype
  from kornia.utils.image import perform_keep_shape_image
  from kornia.utils.misc import eye_like
  from .imgwarp import get_affine_matrix2d, get_projective_transform, get_rotation_matrix2d, warp_affine, warp_affine3d
label_desc: Use image node_id 3 for calling a global function with example usage: _compute_rotation_matrix(angle, center) and returns: matrix