code: def _to_python_time(value: int) -> time:
      """Convert polars int64 (ns) timestamp to python time object."""
      if value == 0:
          return time(microsecond=0)
      else:
          seconds, nanoseconds = divmod(value, NS_PER_SECOND)
          minutes, seconds = divmod(seconds, 60)
          hours, minutes = divmod(minutes, 60)
          return time(
              hour=hours,
              minute=minutes,
              second=seconds,
              microsecond=nanoseconds // 1_000,
          )
  
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 10 for calling a global function with example usage: _to_python_time(value) and returns: time, time