code: def test_ss_livestream(format):
      """
      Testing Single-Source Mode with livestream.
      """
      assets_file_path = os.path.join(
          return_assets_path(False if format == "dash" else True),
          "format_test{}".format(
              ".mpd" if format == "dash" else ".m3u8"
          ),
      )
      try:
          stream_params = {
              "-video_source": return_testvideo_path(),
              "-livestream": True,
              "-remove_at_exit": 1,
          }
          streamer = StreamGear(
              output=assets_file_path,
              format=format,
              logging=True,
              **stream_params,
          )
          streamer.transcode_source()
          streamer.terminate()
      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 11 for calling a global function with example usage: test_ss_livestream(format) without return types