code: def _torch_cos(x: Tensor, freq: Tensor) -> Tensor:
      return (x * freq).cos()
  
file_path: kornia/kornia/nerf/positional_encoder.py
imports: from functools import partial
  import torch
  from torch import nn
  from kornia.core import Tensor
label_desc: Use image node_id 2 for calling a global function with example usage: _torch_cos(x, freq) and returns: unknown