code: def test_paths(compression_mode, path):
      """
      Paths Test - Test various paths/urls supported by WriteGear.
      """
      writer = None
      try:
          writer = WriteGear(
              path, compression_mode=compression_mode, logging=True
          )
      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 4 for calling a global function with example usage: test_paths(compression_mode, path) without return types