code: def test_outputs(output):
      """
      Testing different output for StreamGear
      """
      stream_params = (
          {"-clear_prev_assets": True}
          if (output and output == "output.mpd")
          else {"-clear_prev_assets": "invalid"}
      )
      try:
          streamer = StreamGear(
              output=output,
              format="hls" if output == "output.m3u8" else "dash",
              logging=True,
              **stream_params,
          )
          streamer.terminate()
      except Exception as e:
          if output is None or output.endswith("m3u8"):
              pytest.xfail(str(e))
          else:
              pytest.fail(str(e))
  
file_path: vidgear/vidgear/tests/streamer_tests/test_init.py
imports: import os
  import pytest
  import logging
  import platform
  import tempfile
  from os.path import expanduser
  from vidgear.gears import StreamGear
  from vidgear.gears.helper import logger_handler
label_desc: Use image node_id 4 for calling a global function with example usage: test_outputs(output) without return types