code: def validate_input_and_output_paths(
      video_path: str, output_path: Optional[str]
  ) -> Tuple[str, str]:
      local_video_path = get_local_path(video_path)
      utils.validate_video_path(local_video_path)
  
      if output_path is None:
          assert (
              video_path == local_video_path
          ), "If using a nonlocal input path, you must specify an output path"
  
      output_path = output_path or video_path
      utils.validate_output_path(output_path)
  
      return local_video_path, output_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 5 for calling a global function with example usage: validate_input_and_output_paths(video_path, output_path) and returns: local_video_path,  output_path