class_docstr: modified from how2's video_feature_extractor.
class_docstr_tok: ["modified","from","how2","'s","video_feature_extractor","."]
code: def _get_output_dim(self, h, w):
      if isinstance(self.size, tuple) and len(self.size) == 2:
          return self.size
      elif h >= w:
          return int(h * self.size / w), self.size
      else:
          return self.size, int(w * self.size / h)
  
imports: import torch
  import pandas
  import os
  import numpy
  import ffmpeg
  import random
  from torch.utils.data import Dataset
label_desc: Use image node_id 5 for calling the VideoLoader obj's underlying member method code with example usage: obj._get_output_dim(h, w) and returns: self, int,  self, self,  int