code: def test_params(stream_params, format):
      """
      Testing "-stream_params" parameters by StreamGear
      """
      try:
          assets_file_path = os.path.join(
              return_assets_path(False if format == "dash" else True),
              "format_test{}".format(
                  ".mpd" if format == "dash" else ".m3u8"
              ),
          )
          if format == "hls":
              stream_params.update(
                  {
                      "-hls_base_url": return_assets_path(
                          False if format == "dash" else True
                      )
                      + os.sep
                  }
              )
          stream = cv2.VideoCapture(
              return_testvideo_path()
          )  # Open stream
          streamer = StreamGear(
              output=assets_file_path,
              format=format,
              logging=True,
              **stream_params,
          )
          while True:
              (grabbed, frame) = stream.read()
              if not grabbed:
                  break
              streamer.stream(frame)
          stream.release()
          streamer.terminate()
          if format == "dash":
              assert check_valid_mpd(assets_file_path), "Test Failed!"
          else:
              assert extract_meta_video(
                  assets_file_path
              ), "Test Failed!"
      except Exception as e:
          pytest.fail(str(e))
  
imports: import os
  import cv2
  import queue
  import pytest
  import m3u8
  import logging
  import platform
  import tempfile
  from mpegdash.parser import MPEGDASHParser
  from vidgear.gears import CamGear, StreamGear
  from vidgear.gears.helper import logger_handler, validate_video
label_desc: Use image node_id 15 for calling a global function with example usage: test_params(stream_params, format) without return types