code: def test_input_framerate_rtf(format):
      """
      Testing "-input_framerate" parameter provided 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"
              ),
          )
          stream = cv2.VideoCapture(
              return_testvideo_path()
          )  # Open stream
          test_framerate = stream.get(cv2.CAP_PROP_FPS)
          stream_params = {
              "-clear_prev_assets": True,
              "-input_framerate": test_framerate,
          }
          if format == "hls":
              stream_params.update(
                  {
                      "-hls_base_url": return_assets_path(
                          False if format == "dash" else True
                      )
                      + os.sep
                  }
              )
          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":
              meta_data = extract_meta_mpd(assets_file_path)
              assert meta_data and len(meta_data) > 0, "Test Failed!"
              framerate_mpd = string_to_float(meta_data[0]["framerate"])
              assert framerate_mpd > 0.0 and isinstance(
                  framerate_mpd, float
              ), "Test Failed!"
              assert round(framerate_mpd) == round(
                  test_framerate
              ), "Test Failed!"
          else:
              meta_data = extract_meta_video(assets_file_path)
              assert (
                  meta_data and "framerate" in meta_data
              ), "Test Failed!"
              framerate_m3u8 = float(meta_data["framerate"])
              assert framerate_m3u8 > 0.0 and isinstance(
                  framerate_m3u8, float
              ), "Test Failed!"
              assert round(framerate_m3u8) == round(
                  test_framerate
              ), "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 14 for calling a global function with example usage: test_input_framerate_rtf(format) without return types