code: def test_transpose_supertype() -> None:
      df = pl.DataFrame({"a": [1, 2, 3], "b": ["foo", "bar", "ham"]})
      result = df.transpose()
      expected = pl.DataFrame(
          {
              "column_0": ["1", "foo"],
              "column_1": ["2", "bar"],
              "column_2": ["3", "ham"],
          }
      )
      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 1 for calling a global function with example usage: test_transpose_supertype() without return types