code: def _localize(dt: datetime, time_zone: str) -> datetime:
      # zone info installation should already be checked
      _tzinfo: ZoneInfo | tzinfo
      try:
          _tzinfo = get_zoneinfo(time_zone)
      except zoneinfo.ZoneInfoNotFoundError:
          # try fixed offset, which is not supported by ZoneInfo
          _tzinfo = _parse_fixed_tz_offset(time_zone)
  
      return dt.astimezone(_tzinfo)
  
imports: from __future__ import annotations
  import sys
  from datetime import datetime, time, timedelta, timezone
  from decimal import Context
  from functools import lru_cache
  from typing import TYPE_CHECKING, Any, Callable, Sequence, TypeVar, overload
  from polars.dependencies import _ZONEINFO_AVAILABLE, zoneinfo
label_desc: Use image node_id 14 for calling a global function with example usage: _localize(dt, time_zone) and returns: dt