code: def numpy_char_code_to_dtype(dtype_char: str) -> PolarsDataType:
      """Convert a numpy character dtype to a Polars dtype."""
      dtype = np.dtype(dtype_char)
      if dtype.kind == "U":
          return String
      try:
          return DataTypeMappings.NUMPY_KIND_AND_ITEMSIZE_TO_DTYPE[
              (dtype.kind, dtype.itemsize)
          ]
      except KeyError:  # pragma: no cover
          raise ValueError(
              f"cannot parse numpy data type {dtype!r} into Polars data type"
          ) from None
  
imports: from __future__ import annotations
  import contextlib
  import ctypes
  import functools
  import re
  import sys
  from datetime import date, datetime, time, timedelta
  from decimal import Decimal
  from typing import TYPE_CHECKING, Any, Collection, ForwardRef, Optional, Union, get_args, overload
  from polars.datatypes import Array, Binary, Boolean, Categorical, DataType, DataTypeClass, Date, Datetime, Decimal, Duration, Field, Float32, Float64, Int8, Int16, Int32, Int64, List, Null, Object, String, Struct, Time, UInt8, UInt16, UInt32, UInt64, Unknown
  from polars.dependencies import numpy
  from polars.dependencies import pyarrow
label_desc: Use image node_id 13 for calling a global function with example usage: numpy_char_code_to_dtype(dtype_char) and returns: String, DataTypeMappings