code: def _get_gdal_dtype(type_name):
      try:
          return dtype_rev[type_name]
      except KeyError:
          raise TypeError(
              f"Unsupported data type {type_name}. "
              f"Allowed data types: {list(dtype_rev)}."
          )
  
file_path: rasterio/rasterio/dtypes.py
imports: import numpy
  from rasterio.env import GDALVersion
label_desc: Use image node_id 1 for calling a global function with example usage: _get_gdal_dtype(type_name) and returns: dtype_rev