code: def make_video_pairs(
      crop_size_h: int,
      crop_size_w: int,
      min_crop_size_h: int,
      max_crop_size_h: int,
      min_crop_size_w: int,
      max_crop_size_w: int,
      default_frames: int,
      max_scales: Optional[int] = 5,
      check_scale_div_factor: Optional[int] = 32,
      *args,
      **kwargs,
  ) -> List[Tuple[int, int, int]]:
      """This function creates number of frames and spatial size pairs for videos.
  
      Args:
          crop_size_h: Base Image height (e.g., 224)
          crop_size_w: Base Image width (e.g., 224)
          min_crop_size_w: Min. crop size along width.
          max_crop_size_w: Max. crop size along width.
          min_crop_size_h: Min. crop size along height.
          max_crop_size_h: Max. crop size along height.
          default_frames: Default number of frames per clip in a video.
          max_scales: Number of scales. Default: 5
          check_scale_div_factor: Check if spatial scales are divisible by this factor.
              Default: 32.
  
      Returns:
          A sorted list of tuples. Each index is of the form (h, w, n_frames)
      """
  
      width_dims = create_intervallic_integer_list(
          crop_size_w,
          min_crop_size_w,
          max_crop_size_w,
          max_scales,
          check_scale_div_factor,
      )
      height_dims = create_intervallic_integer_list(
          crop_size_h,
          min_crop_size_h,
          max_crop_size_h,
          max_scales,
          check_scale_div_factor,
      )
      batch_pairs = set()
      n_elements = crop_size_w * crop_size_h * default_frames
      for h, w in zip(height_dims, width_dims):
          n_frames = max(1, int(round(n_elements / (h * w), 2)))
          batch_pairs.add((h, w, n_frames))
      return sorted(list(batch_pairs))
  
imports: from typing import List, Optional, Tuple, Union
  import numpy
  from utils.math_utils import make_divisible
label_desc: Use image node_id 2 for calling a global function with example usage: make_video_pairs(crop_size_h, crop_size_w, min_crop_size_h, max_crop_size_h, min_crop_size_w, max_crop_size_w, default_frames, max_scales, check_scale_div_factor) and returns: sorted