code: def http_status_to_grpc_status_map() -> dict[Enum, grpc.StatusCode]:
      # Maps HTTP status code to grpc.StatusCode
      from http import HTTPStatus
  
      return {
          HTTPStatus.OK: grpc.StatusCode.OK,
          HTTPStatus.UNAUTHORIZED: grpc.StatusCode.UNAUTHENTICATED,
          HTTPStatus.FORBIDDEN: grpc.StatusCode.PERMISSION_DENIED,
          HTTPStatus.NOT_FOUND: grpc.StatusCode.UNIMPLEMENTED,
          HTTPStatus.TOO_MANY_REQUESTS: grpc.StatusCode.UNAVAILABLE,
          HTTPStatus.BAD_GATEWAY: grpc.StatusCode.UNAVAILABLE,
          HTTPStatus.SERVICE_UNAVAILABLE: grpc.StatusCode.UNAVAILABLE,
          HTTPStatus.GATEWAY_TIMEOUT: grpc.StatusCode.DEADLINE_EXCEEDED,
          HTTPStatus.BAD_REQUEST: grpc.StatusCode.INVALID_ARGUMENT,
          HTTPStatus.INTERNAL_SERVER_ERROR: grpc.StatusCode.INTERNAL,
          HTTPStatus.UNPROCESSABLE_ENTITY: grpc.StatusCode.FAILED_PRECONDITION,
      }
  
imports: from __future__ import annotations
  import logging
  import typing
  from dataclasses import dataclass
  from functools import lru_cache
  from http import HTTPStatus
  from typing import TYPE_CHECKING
  from ..._internal.utils import resolve_user_filepath
  from ...exceptions import InvalidArgument
  from ._import_hook import LATEST_PROTOCOL_VERSION
  from ._import_hook import import_generated_stubs
  from ._import_hook import import_grpc
label_desc: Use image node_id 3 for calling a global function with example usage: http_status_to_grpc_status_map() and returns: dict