code: def _datetime_for_anyvalue_windows(dt: datetime) -> tuple[float, int]:
      """Used in pyo3 anyvalue conversion."""
      if dt.tzinfo is None:
          dt = _localize(dt, "UTC")
      # returns (s, ms)
      return (_timestamp_in_seconds(dt), dt.microsecond)
  
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 16 for calling a global function with example usage: _datetime_for_anyvalue_windows(dt) and returns: _timestamp_in_seconds,  dt