code: def _orthogonal_matrix(dim: int) -> Tensor:
      r"""Get an orthogonal matrix by applying QR decomposition."""
      # Random matrix from normal distribution
      mat = torch.randn((dim, dim))
      # QR decomposition to two orthogonal matrices
      q, _ = torch.linalg.qr(mat.cpu(), mode="reduced")
      return q.t()
  
file_path: pytorch_geometric/torch_geometric/nn/attention/performer.py
imports: import math
  from typing import Callable, Optional
  import torch
  from torch import Tensor
label_desc: Use image node_id 1 for calling a global function with example usage: _orthogonal_matrix(dim) and returns: q