code: def test_transpose_logical_data() -> None:
      df = pl.DataFrame(
          {
              "a": [
                  date(2022, 2, 1),
                  date(2022, 2, 2),
                  date(2022, 1, 3),
              ],
              "b": [
                  datetime(2022, 1, 1),
                  datetime(2022, 1, 2),
                  datetime(2022, 1, 3),
              ],
          }
      )
      result = df.transpose()
      expected = pl.DataFrame(
          {
              "column_0": [
                  datetime(2022, 2, 1, 0, 0),
                  datetime(2022, 1, 1, 0, 0),
              ],
              "column_1": [
                  datetime(2022, 2, 2, 0, 0),
                  datetime(2022, 1, 2, 0, 0),
              ],
              "column_2": [
                  datetime(2022, 1, 3, 0, 0),
                  datetime(2022, 1, 3, 0, 0),
              ],
          }
      )
      assert_frame_equal(result, expected)
  
file_path: polars/py-polars/tests/unit/operations/test_transpose.py
imports: from datetime import date, datetime
  from typing import Iterator
  import pytest
  import polars
  from polars.exceptions import ComputeError, StringCacheMismatchError
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 6 for calling a global function with example usage: test_transpose_logical_data() without return types