code: def test_rtf_livestream(format):
      """
      Testing Real-Time Frames Mode with livestream.
      """
      assets_file_path = return_assets_path(
          False if format == "dash" else True
      )
  
      try:
          # Open stream
          options = {"THREAD_TIMEOUT": 300}
          stream = CamGear(
              source=return_testvideo_path(), **options
          ).start()
          stream_params = {
              "-livestream": True,
          }
          streamer = StreamGear(
              output=assets_file_path, format=format, **stream_params
          )
          while True:
              frame = stream.read()
              # check if frame is None
              if frame is None:
                  break
              streamer.stream(frame)
          stream.stop()
          streamer.terminate()
      except Exception as e:
          if not isinstance(e, queue.Empty):
              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 13 for calling a global function with example usage: test_rtf_livestream(format) without return types