code: def test_WriteGear_compression(f_name, output_params, result):
      """
      Testing VidGear Non-Compression(OpenCV) Mode with different parameters
      """
      try:
          stream = cv2.VideoCapture(return_testvideo_path())
          writer = WriteGear(
              output=f_name,
              compression_mode=False,
              logging=True,
              **output_params,
          )
          while True:
              (grabbed, frame) = stream.read()
              if not grabbed:
                  break
              writer.write(frame)
          stream.release()
          writer.close()
          remove_file_safe(
              "foo.html"
              if "-gst_pipeline_mode" in output_params
              and output_params["-gst_pipeline_mode"] == True
              else f_name
          )
      except Exception as e:
          if result:
              pytest.fail(str(e))
          else:
              pytest.xfail(str(e))
  
file_path: vidgear/vidgear/tests/writer_tests/test_non_compression_mode.py
imports: import os
  import cv2
  import pytest
  import logging
  import platform
  import tempfile
  from six import string_types
  from vidgear.gears import WriteGear
  from vidgear.gears.helper import capPropId, check_output, logger_handler
label_desc: Use image node_id 5 for calling a global function with example usage: test_WriteGear_compression(f_name, output_params, result) without return types