code: def overlay_shapes(
      video_path: str,
      output_path: Optional[str] = None,
      num_shapes: int = 1,
      shape_type: Optional[str] = None,
      colors: Optional[List[Tuple[int, int, int]]] = None,
      thickness: Optional[int] = None,
      radius: Optional[float] = None,
      random_movement: bool = True,
      topleft: Optional[Tuple[float, float]] = None,
      bottomright: Optional[Tuple[float, float]] = None,
      metadata: Optional[List[Dict[str, Any]]] = None,
      **kwargs,
  ) -> str:
      """
      Overlays random shapes onto a video
  
      @param video_path: the path to the video to be augmented
  
      @param output_path: the path in which the resulting video will be stored.
          If not passed in, the original video file will be overwritten
  
      @param num_shapes: the number of shapes to add to each frame
  
      @param shape_type: specify if you would like circles or rectangles
  
      @param colors: list of (R, G, B) colors to sample from
  
      @param thickness: specify the thickness desired for the shapes
  
      @param random_movement: whether or not you want the shapes to randomly move
          around across the frame or to move across in a "linear" way
  
      @param topleft: specifying the boundary of shape region. The boundary are all
          floats [0, 1] representing the fraction w.r.t width/height
  
      @param bottomright: specifying the boundary of shape region. The boundary are all
          floats [0, 1] representing the fraction w.r.t width/height
  
      @param metadata: if set to be a list, metadata about the function execution
          including its name, the source & dest duration, fps, etc. will be appended
          to the inputted list. If set to None, no metadata will be appended or returned
  
      @returns: the path to the augmented video
      """
      func_kwargs = helpers.get_func_kwargs(
          metadata, locals(), video_path
      )
  
      shapes_aug = ac.VideoDistractorByShapes(
          num_shapes,
          shape_type,
          colors,
          thickness,
          radius,
          random_movement,
          topleft,
          bottomright,
      )
      vdutils.apply_cv2_augmenter(
          shapes_aug, video_path, output_path, **kwargs
      )
  
      if metadata is not None:
          helpers.get_metadata(
              metadata=metadata,
              function_name="overlay_shapes",
              **func_kwargs,
          )
  
      return output_path or video_path
  
imports: import functools
  import math
  import os
  import shutil
  import tempfile
  from typing import Any, Callable, Dict, List, Optional, Tuple, Union
  import numpy
  from augly import audio, image, utils
  from augly.audio import utils
  from augly.video import helpers, utils
  from augly.video.augmenters import cv2, ffmpeg
label_desc: Use image node_id 29 for calling a global function with example usage: overlay_shapes(video_path, output_path, num_shapes, shape_type, colors, thickness, radius, random_movement, topleft, bottomright, metadata) and returns: unknown