code: def test_WriteGear_compression(
      f_name, c_ffmpeg, output_params, result
  ):
      """
      Testing WriteGear Compression-Mode(FFmpeg) with different parameters
      """
      try:
          stream = cv2.VideoCapture(
              return_testvideo_path()
          )  # Open stream
          writer = WriteGear(
              output=f_name, compression_mode=True, **output_params
          )
          while True:
              (grabbed, frame) = stream.read()
              if not grabbed:
                  break
              writer.write(frame)
          stream.release()
          writer.close()
          remove_file_safe(f_name)
      except Exception as e:
          if result:
              pytest.fail(str(e))
  
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 9 for calling a global function with example usage: test_WriteGear_compression(f_name, c_ffmpeg, output_params, result) without return types