code: def test_failedextension():
      """
      IO Test - made to fail with filename with wrong extention
      """
      np.random.seed(0)
      # generate random data for 10 frames
      random_data = np.random.random(size=(10, 480, 640, 3)) * 255
      input_data = random_data.astype(np.uint8)
  
      # 'garbage' extension does not exist
      with pytest.raises(ValueError):
          writer = WriteGear("garbage.garbage", logging=True)
          writer.write(input_data)
          writer.close()
  
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 1 for calling a global function with example usage: test_failedextension() without return types