code: def request_size_exceeded(request: Request, limit: int) -> bool:
      if "content-length" not in request.headers:
          return True
      content_length = int(request.headers["content-length"])
      if content_length > limit:
          return True
      return False
  
file_path: dstack/src/dstack/_internal/server/utils/routers.py
imports: from typing import Dict, List, Optional
  from fastapi import HTTPException, Request, Response, status
  from fastapi.responses import JSONResponse
  from packaging import version
  from dstack._internal.core.errors import ServerClientError
  from dstack._internal.server import settings
label_desc: Use image node_id 7 for calling a global function with example usage: request_size_exceeded(request, limit) and returns: False, True, True