code: def _set_numpy_to_constructor() -> None:
      global _NUMPY_TYPE_TO_CONSTRUCTOR
      _NUMPY_TYPE_TO_CONSTRUCTOR = {
          np.float32: PySeries.new_f32,
          np.float64: PySeries.new_f64,
          np.int8: PySeries.new_i8,
          np.int16: PySeries.new_i16,
          np.int32: PySeries.new_i32,
          np.int64: PySeries.new_i64,
          np.uint8: PySeries.new_u8,
          np.uint16: PySeries.new_u16,
          np.uint32: PySeries.new_u32,
          np.uint64: PySeries.new_u64,
          np.str_: PySeries.new_str,
          np.bytes_: PySeries.new_binary,
          np.bool_: PySeries.new_bool,
          np.datetime64: PySeries.new_i64,
          np.timedelta64: PySeries.new_i64,
      }
  
file_path: polars/py-polars/polars/datatypes/constructor.py
imports: from __future__ import annotations
  import functools
  from decimal import Decimal
  from typing import TYPE_CHECKING, Any, Callable, Sequence
  from polars import datatypes
  from polars.dependencies import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: _set_numpy_to_constructor() without return types