code: def create_video_from_image(
      output_path: str, image_path: str, duration: float
  ) -> None:
      """
      Creates a video with all frames being the image provided
  
      @param output_path: the path in which the resulting video will be stored
  
      @param image_path: the path to the image to use to create the video
  
      @param duration: how long the video should be, in seconds
      """
      utils.validate_output_path(output_path)
      utils.validate_image_path(image_path)
      assert (
          duration > 0
      ), "Duration of the video must be a positive value"
  
      im_stream = ffmpeg.input(image_path, stream_loop=-1)
      video = im_stream.filter(
          "framerate", utils.DEFAULT_FRAME_RATE
      ).filter(
          "pad", **{"width": "ceil(iw/2)*2", "height": "ceil(ih/2)*2"}
      )
  
      silent_audio_path = utils.pathmgr.get_local_path(
          utils.SILENT_AUDIO_PATH
      )
      audio = ffmpeg.input(
          silent_audio_path, stream_loop=math.ceil(duration)
      ).audio
      output = ffmpeg.output(
          video, audio, output_path, pix_fmt="yuv420p", t=duration
      )
      output.overwrite_output().run(cmd=FFMPEG_PATH)
  
file_path: AugLy/augly/video/helpers/utils.py
imports: import math
  import os
  import shutil
  import tempfile
  from typing import Any, Dict, List, Optional, Tuple
  import cv2
  import ffmpeg
  import numpy
  from augly import utils
  from augly.utils.ffmpeg import FFMPEG_PATH
  from augly.video import helpers
label_desc: Use image node_id 2 for calling a global function with example usage: create_video_from_image(output_path, image_path, duration) without return types