code: def test_rolling_median() -> None:
      for n in range(10, 25):
          array = np.random.randint(0, 20, n)
          for k in [3, 5, 7]:
              a = pl.Series(array)
              assert_series_equal(
                  a.rolling_median(k),
                  pl.from_pandas(a.to_pandas().rolling(k).median()),
              )
  
imports: from __future__ import annotations
  from datetime import date, datetime, timedelta
  from typing import TYPE_CHECKING
  import numpy
  import pytest
  from numpy import nan
  import polars
  from polars.exceptions import ComputeError
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 28 for calling a global function with example usage: test_rolling_median() without return types