code: def forward(self, x):
      emb = x[:, None] * self.emb[None, :]
      emb = torch.cat((emb.sin(), emb.cos()), dim=-1)
      return emb
  
imports: import math
  import kornia
  import torch
  import torch.nn.functional
  from einops import rearrange
  from torch import nn
label_desc: Use image node_id 2 for calling the SinusoidalPosEmb obj's underlying member method code with example usage: obj.forward(x) and returns: emb