code: def _to_python_timedelta(
      value: int | float, time_unit: TimeUnit | None = "ns"
  ) -> timedelta:
      if time_unit == "ns":
          return timedelta(microseconds=value // 1_000)
      elif time_unit == "us":
          return timedelta(microseconds=value)
      elif time_unit == "ms":
          return timedelta(milliseconds=value)
      else:
          raise ValueError(
              f"`time_unit` must be one of {{'ns', 'us', 'ms'}}, got {time_unit!r}"
          )
  
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 11 for calling a global function with example usage: _to_python_timedelta(value, time_unit) and returns: timedelta, timedelta, timedelta