code: def forward(self, x):
      # (B, C, T, H, W)
      if x.dim() == 5:
          B, C = x.shape[:2]
          x = x.flatten(start_dim=0, end_dim=1)
          x = self.resize(x)
          x = x.reshape((B, C) + x.shape[1:])
  
      # (C, T, H, W)
      elif x.dim() == 4:
          x = self.resize(x)
  
      return x
  
file_path: NeMo/nemo/collections/multimodal/speech_cv/modules/video_preprocessing.py
imports: import torch
  from torch import nn
  from nemo.collections.multimodal.speech_cv.parts.submodules.permute import Permute
  from nemo.core.classes import NeuralModule, typecheck
label_desc: Use image node_id 2 for calling the ResizeVideo obj's underlying member method code with example usage: obj.forward(x) and returns: x