class_docstr: A video clip transform that is often useful for trainig data.
  
  Given a size range, randomly choose a size. Rescale the clip so that
  its short edge equals to the chosen size. Then randomly crop the video
  clip with the specified size.
  Such training data augmentation is used in VGG net
  (https://arxiv.org/abs/1409.1556).
  Also see reference implementation `Kinetics.spatial_sampling` in SlowFast
      codebase.
class_docstr_tok: ["A","video","clip","transform","that","is","often","useful","for","trainig","data",".","Given","a","size","range",",","randomly","choose","a","size",".","Rescale","the","clip","so","that","its","short","edge","equals","to","the","chosen","size",".","Then","randomly","crop","the","video","clip","with","the","specified","size",".","Such","training","data","augmentation","is","used","in","VGG","net","(","https",":","\/\/arxiv.org\/abs\/1409.1556",")",".","Also","see","reference","implementation","`","Kinetics.spatial_sampling","`","in","SlowFast","codebase","."]
docstr: Callable function which applies the tranform to the input clip.
  
  Args:
      clip (torch.Tensor): input clip tensor
docstr_tok: ["Callable","function","which","applies","the","tranform","to","the","input","clip",".","Args",":","clip","(","torch.Tensor",")",":","input","clip","tensor"]
code: def __call__(self, clip):
      """Callable function which applies the tranform to the input clip.
  
      Args:
          clip (torch.Tensor): input clip tensor
  
      """
      # clip size: C x T x H x W
      rand_size = random.randint(self.size_range[0], self.size_range[1])
      new_h, new_w = _get_rescaled_size(
          rand_size, clip.size()[2], clip.size()[3]
      )
      clip = torch.nn.functional.interpolate(
          clip, size=(new_h, new_w), mode=self.interpolation_mode
      )
      assert (
          self.crop_size[0] <= new_h and self.crop_size[1] <= new_w
      ), "crop size can not be larger than video frame size"
  
      i = random.randint(0, new_h - self.crop_size[0])
      j = random.randint(0, new_w - self.crop_size[1])
      clip = clip[
          :, :, i : i + self.crop_size[0], j : j + self.crop_size[1]
      ]
      return clip
  
imports: import random
  from typing import Any, Callable, Dict, List, Optional, Union
  import torch
  import torchvision.transforms
  import torchvision.transforms._transforms_video
  from .None import build_transforms, ClassyTransform, register_transform
  from .util import ApplyTransformToKey, ImagenetConstants, TupleToMapTransform
label_desc: Use image node_id 2 for calling the VideoClipRandomResizeCrop obj's underlying member method code with example usage: obj.__call__(clip) and returns: clip