code: def test_webgear_class(source, stabilize, colorspace, time_delay):
      """
      Test for various WebGear API parameters
      """
      try:
          web = WebGear(
              source=source,
              stabilize=stabilize,
              colorspace=colorspace,
              time_delay=time_delay,
              logging=True,
          )
          client = TestClient(web(), raise_server_exceptions=True)
          response = client.get("/")
          assert response.status_code == 200
          response_404 = client.get("/test")
          assert response_404.status_code == 404
          web.shutdown()
      except Exception as e:
          pytest.fail(str(e))
  
imports: import os
  import cv2
  import pytest
  import asyncio
  import logging
  import requests
  import tempfile
  from starlette.routing import Route
  from starlette.responses import JSONResponse
  from starlette.middleware import Middleware
  from starlette.middleware.cors import CORSMiddleware
  from starlette.responses import PlainTextResponse
  from starlette.testclient import TestClient
  from vidgear.gears.asyncio import WebGear
  from vidgear.gears.helper import logger_handler
label_desc: Use image node_id 3 for calling a global function with example usage: test_webgear_class(source, stabilize, colorspace, time_delay) without return types