code: def test_output_dimensions():
      """
      Testing "-output_dimensions" special parameter provided by WriteGear(in Compression Mode)
      """
      dimensions = (640, 480)
      stream = cv2.VideoCapture(return_testvideo_path())
      output_params = {}
      if platform.system() == "Windows":
          output_params = {
              "-output_dimensions": dimensions,
              "-ffmpeg_download_path": tempfile.gettempdir(),
              "-disable_ffmpeg_window": True,
          }
      else:
          output_params = {"-output_dimensions": dimensions}
      writer = WriteGear(
          output="Output_tod.mp4",
          custom_ffmpeg=return_static_ffmpeg(),
          logging=True,
          **output_params,
      )  # Define writer
      while True:
          (grabbed, frame) = stream.read()
          if not grabbed:
              break
          writer.write(frame)
      stream.release()
      writer.close()
  
      output = cv2.VideoCapture(os.path.abspath("Output_tod.mp4"))
      output_dim = (
          output.get(cv2.CAP_PROP_FRAME_WIDTH),
          output.get(cv2.CAP_PROP_FRAME_HEIGHT),
      )
      assert output_dim[0] == 640 and output_dim[1] == 480
      output.release()
  
      remove_file_safe("Output_tod.mp4")
  
imports: import os
  import re
  import cv2
  import pytest
  import logging
  import platform
  import tempfile
  import subprocess
  from six import string_types
  from deffcode import FFdecoder
  from vidgear.gears import WriteGear
  from vidgear.gears.helper import check_output, logger_handler
label_desc: Use image node_id 8 for calling a global function with example usage: test_output_dimensions() without return types