code: def test_median_on_shifted_col_3522() -> None:
      df = pl.DataFrame(
          {
              "foo": [
                  datetime(2022, 5, 5, 12, 31, 34),
                  datetime(2022, 5, 5, 12, 47, 1),
                  datetime(2022, 5, 6, 8, 59, 11),
              ]
          }
      )
      diffs = df.select(pl.col("foo").diff().dt.total_seconds())
      assert (
          diffs.select(pl.col("foo").median()).to_series()[0] == 36828.5
      )
  
imports: from __future__ import annotations
  from datetime import datetime, timedelta
  from typing import Any
  import numpy
  import pandas
  import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 8 for calling a global function with example usage: test_median_on_shifted_col_3522() without return types