code: def __init__(
      self,
      overlay_path: str,
      x_factor: float,
      y_factor: float,
      use_overlay_audio: bool,
  ):
      assert is_image_file(overlay_path) or is_video_file(
          overlay_path
      ), "Overlaid media type not supported: please overlay either an image or video"
      assert (
          0 <= x_factor <= 1
      ), "x_factor must be a value in the range [0, 1]"
      assert (
          0 <= y_factor <= 1
      ), "y_factor must be a value in the range [0, 1]"
      assert (
          type(use_overlay_audio) == bool
      ), "Expected a boolean value for use_overlay_audio"
  
      self.overlay_path = pathmgr.get_local_path(overlay_path)
      self.x_factor = x_factor
      self.y_factor = y_factor
      self.use_overlay_audio = use_overlay_audio and is_video_file(
          overlay_path
      )
  
file_path: AugLy/augly/video/augmenters/ffmpeg/overlay.py
imports: from typing import List
  from augly.utils import is_image_file, is_video_file, pathmgr
  from augly.video.augmenters.ffmpeg.base_augmenter import BaseVidgearFFMPEGAugmenter
  from augly.video.helpers import get_video_info, has_audio_stream
label_desc: Use image node_id 1 to create a new VideoAugmenterByOverlay object from inherited base classes: BaseVidgearFFMPEGAugmenter with example: obj = VideoAugmenterByOverlay(overlay_path, x_factor, y_factor, use_overlay_audio)