code: def __init__(self, ratio: Union[float, str]):
      assert (
          isinstance(ratio, str) and len(ratio.split(":")) == 2
      ) or (
          isinstance(ratio, (int, float)) and ratio > 0
      ), "Aspect ratio must be a valid string ratio or a positive number"
      self.aspect_ratio = ratio
  
file_path: AugLy/augly/video/augmenters/ffmpeg/aspect_ratio.py
imports: import math
  from typing import List, Union
  from augly.video.augmenters.ffmpeg.base_augmenter import BaseVidgearFFMPEGAugmenter
  from augly.video.helpers import get_video_info
label_desc: Use image node_id 1 to create a new VideoAugmenterByAspectRatio object from inherited base classes: BaseVidgearFFMPEGAugmenter with example: obj = VideoAugmenterByAspectRatio(ratio)