code: def test_invalid_encoder(v_codec):
      """
      Invalid encoder Failure Test
      """
      np.random.seed(0)
      # generate random data for 10 frames
      random_data = np.random.random(size=(480, 640, 3)) * 255
      input_data = random_data.astype(np.uint8)
      try:
          output_params = {"-vcodec": v_codec}
          writer = WriteGear(
              "output.mp4",
              compression_mode=True,
              logging=True,
              **output_params,
          )
          writer.write(input_data)
          writer.write(input_data)
          writer.close()
      except Exception as e:
          pytest.fail(str(e))
  
file_path: vidgear/vidgear/tests/writer_tests/test_IO.py
imports: import numpy
  import pytest
  import platform
  from vidgear.gears import WriteGear
label_desc: Use image node_id 5 for calling a global function with example usage: test_invalid_encoder(v_codec) without return types