code: def random_rotation(
      dtype: Optional[torch.dtype] = None,
      device: Optional[Device] = None,
  ) -> torch.Tensor:
      """
      Generate a single random 3x3 rotation matrix.
  
      Args:
          dtype: Type to return
          device: Device of returned tensor. Default: if None,
              uses the current device for the default tensor type
  
      Returns:
          Rotation matrix as tensor of shape (3, 3).
      """
      return random_rotations(1, dtype, device)[0]
  
imports: from typing import Optional
  import torch
  import torch.nn.functional
  from ..common.datatypes import Device
label_desc: Use image node_id 12 for calling a global function with example usage: random_rotation(dtype, device) and returns: random_rotations