code: def apply_cached_rotary_emb(freqs: Tensor, t: Tensor) -> Tensor:
      return (t * freqs[0]) + (rotate_half(t) * freqs[1])
  
imports: import math
  import warnings
  from pathlib import Path
  from types import SimpleNamespace
  from typing import Any, Callable, ClassVar, Dict, List, Optional, Tuple
  import torch
  import torch.nn.functional
  from torch import nn
  from kornia.core import Module, ModuleList, Tensor, arange, concatenate, cos, einsum, ones, ones_like, sin, stack, where, zeros
  from kornia.core.check import KORNIA_CHECK
  from kornia.feature.laf import laf_to_three_points, scale_laf
label_desc: Use image node_id 5 for calling a global function with example usage: apply_cached_rotary_emb(freqs, t) and returns: unknown