code: def test_write(conversion):
      """
      Testing VidGear Non-Compression(OpenCV) Mode Writer
      """
      stream = cv2.VideoCapture(return_testvideo_path())
      writer = WriteGear(
          output="Output_twc.avi", compression_mode=False
      )  # Define writer
      while True:
          (grabbed, frame) = stream.read()
          # read frames
          # check if frame empty
          if not grabbed:
              # if True break the infinite loop
              break
          if conversion:
              frame = cv2.cvtColor(frame, capPropId(conversion))
          writer.write(frame)
      stream.release()
      writer.close()
      basepath, _ = os.path.split(return_static_ffmpeg())
      ffprobe_path = os.path.join(
          basepath, "ffprobe.exe" if os.name == "nt" else "ffprobe"
      )
      result = check_output(
          [
              ffprobe_path,
              "-v",
              "error",
              "-count_frames",
              "-i",
              os.path.abspath("Output_twc.avi"),
          ]
      )
      if result:
          if not isinstance(result, string_types):
              result = result.decode()
          logger.debug("Result: {}".format(result))
          for i in ["Error", "Invalid", "error", "invalid"]:
              assert not (i in result)
      remove_file_safe("Output_twc.avi")
  
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 4 for calling a global function with example usage: test_write(conversion) without return types