code: def test_fail_framedimension(compression_mode):
      """
      IO Test - made to fail with multiple frame dimension
      """
      np.random.seed(0)
      # generate random data for 10 frames
      random_data1 = np.random.random(size=(480, 640, 3)) * 255
      input_data1 = random_data1.astype(np.uint8)
  
      np.random.seed(0)
      random_data2 = np.random.random(size=(580, 640, 3)) * 255
      input_data2 = random_data2.astype(np.uint8)
  
      writer = None
      try:
          writer = WriteGear(
              "output.mp4",
              compression_mode=compression_mode,
              logging=True,
          )
          writer.write(None)
          writer.write(input_data1)
          writer.write(input_data2)
      except Exception as e:
          if isinstance(e, ValueError):
              pytest.xfail("Test Passed!")
          else:
              pytest.fail(str(e))
      finally:
          if not writer is None:
              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 3 for calling a global function with example usage: test_fail_framedimension(compression_mode) without return types