code: def video_pad(
      vid: torch.Tensor,
      padding: List[int],
      fill: float = 0,
      padding_mode: str = "constant",
  ) -> torch.Tensor:
      # NOTE: don't want to pad on temporal dimension, so let as non-batch
      # (4d) before padding. This works as expected
      return torch.nn.functional.pad(
          vid, padding, value=fill, mode=padding_mode
      )
  
file_path: mmf/mmf/datasets/processors/functional.py
imports: from typing import List, Tuple, Union
  import torch
label_desc: Use image node_id 5 for calling a global function with example usage: video_pad(vid, padding, fill, padding_mode) and returns: torch