code: def test_median_duplicate_columns():
      # GH 14233
  
      df = DataFrame(
          np.random.default_rng(2).standard_normal((20, 3)),
          columns=list("aaa"),
          index=date_range("2012-01-01", periods=20, freq="s"),
      )
      result = df.resample("5s").median()
      df.columns = ["a", "b", "c"]
      expected = df.resample("5s").median()
      expected.columns = result.columns
      tm.assert_frame_equal(result, expected)
  
imports: from textwrap import dedent
  import numpy
  import pytest
  from pandas.compat import is_platform_windows
  import pandas
  from pandas import DataFrame, Index, Series, TimedeltaIndex, Timestamp
  import pandas._testing
  from pandas.core.indexes.datetimes import date_range
label_desc: Use image node_id 18 for calling a global function with example usage: test_median_duplicate_columns() without return types