code: def test_paths_ss(path, format):
      """
      Paths Test - Test various paths/urls supported by StreamGear.
      """
      streamer = None
      try:
          stream_params = {"-video_source": return_testvideo_path()}
          streamer = StreamGear(
              output=path, format=format, logging=True, **stream_params
          )
      except Exception as e:
          if isinstance(e, ValueError):
              pytest.xfail("Test Passed!")
          else:
              pytest.fail(str(e))
      finally:
          if not streamer is None:
              streamer.terminate()
  
file_path: vidgear/vidgear/tests/streamer_tests/test_IO_ss.py
imports: import os
  import numpy
  import pytest
  import tempfile
  import subprocess
  from vidgear.gears import StreamGear
label_desc: Use image node_id 4 for calling a global function with example usage: test_paths_ss(path, format) without return types