code: def test_skip_generate_webdata():
      """
      Test for `skip_generate_webdata` optional attribute
      """
      try:
          # add various performance tweaks as usual
          options = {
              "frame_size_reduction": 40,
              "jpeg_compression_quality": 80,
              "jpeg_compression_fastdct": True,
              "jpeg_compression_fastupsample": False,
              "skip_generate_webdata": True,
          }
          web = WebGear(
              source=return_testvideo_path(), logging=True, **options
          )
          client = TestClient(web(), raise_server_exceptions=True)
          response = client.get("/")
          assert "detail" in response.json()
          response_404 = client.get("/test")
          assert "detail" in response_404.json()
          assert response_404.status_code == 404
          response_video = client.get("/video")
          assert response_video.status_code == 200
          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 8 for calling a global function with example usage: test_skip_generate_webdata() without return types