class_docstr: Add a cls token and apply a spatiotemporal encoding to a tensor.
docstr: Args:
      x (torch.Tensor): Input tensor.
docstr_tok: ["Args",":","x","(","torch.Tensor",")",":","Input","tensor","."]
code: def forward(self, x: torch.Tensor) -> torch.Tensor:
      """
      Args:
          x (torch.Tensor): Input tensor.
      """
      B, N, C = x.shape
  
      assert self.sep_pos_embed
      pos_embed = self.pos_embed_spatial.repeat(
          1, self.num_temporal_patch, 1
      ) + torch.repeat_interleave(
          self.pos_embed_temporal,
          self.num_spatial_patch,
          dim=1,
      )
      x = x + pos_embed
      return x
  
imports: from typing import Tuple
  import torch
  from torch import nn
label_desc: Use image node_id 3 for calling the ScriptableSpatioTemporalClsPositionalEncoding obj's underlying member method code with example usage: obj.forward(x) and returns: x