code: def test_epoch_matches_timestamp() -> None:
      dates = pl.Series(
          [datetime(2001, 1, 1), datetime(2001, 2, 1, 10, 8, 9)]
      )
  
      for unit in DTYPE_TEMPORAL_UNITS:
          assert_series_equal(
              dates.dt.epoch(unit), dates.dt.timestamp(unit)
          )
  
      assert_series_equal(
          dates.dt.epoch("s"), dates.dt.timestamp("ms") // 1000
      )
      assert_series_equal(
          dates.dt.epoch("d"),
          (dates.dt.timestamp("ms") // (1000 * 3600 * 24)).cast(
              pl.Int32
          ),
      )
  
imports: from __future__ import annotations
  import sys
  from datetime import date, datetime, time, timedelta
  from typing import TYPE_CHECKING
  import pytest
  import polars
  from polars.datatypes import DTYPE_TEMPORAL_UNITS
  from polars.dependencies import _ZONEINFO_AVAILABLE
  from polars.exceptions import ComputeError, InvalidOperationError
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 30 for calling a global function with example usage: test_epoch_matches_timestamp() without return types