code: def dtypepb_to_npdtype_map(
      version: str = LATEST_PROTOCOL_VERSION,
  ) -> dict[int, ext.NpDTypeLike]:
      pb, _ = import_generated_stubs(version)
      # pb.NDArray.Dtype -> np.dtype
      return {
          pb.NDArray.DTYPE_FLOAT: np.dtype("float32"),
          pb.NDArray.DTYPE_DOUBLE: np.dtype("double"),
          pb.NDArray.DTYPE_INT32: np.dtype("int32"),
          pb.NDArray.DTYPE_INT64: np.dtype("int64"),
          pb.NDArray.DTYPE_UINT32: np.dtype("uint32"),
          pb.NDArray.DTYPE_UINT64: np.dtype("uint64"),
          pb.NDArray.DTYPE_BOOL: np.dtype("bool"),
          pb.NDArray.DTYPE_STRING: np.dtype("<U"),
      }
  
imports: from __future__ import annotations
  import json
  import logging
  import typing
  from functools import lru_cache
  from starlette.requests import Request
  from starlette.responses import Response
  from ...exceptions import BadInput
  from ...exceptions import InvalidArgument
  from ...exceptions import UnprocessableEntity
  from ...grpc.utils import LATEST_PROTOCOL_VERSION
  from ...grpc.utils import import_generated_stubs
  from ..service.openapi import SUCCESS_DESCRIPTION
  from ..service.openapi.specification import MediaType
  from ..service.openapi.specification import Schema
  from ..types import LazyType
  from ..utils import LazyLoader
  from ..utils.http import set_cookies
  from .base import IODescriptor
label_desc: Use image node_id 3 for calling a global function with example usage: dtypepb_to_npdtype_map(version) and returns: dict