code: def test_err_transpose_object() -> None:
      class CustomObject:
          pass
  
      with pytest.raises(pl.InvalidOperationError):
          pl.DataFrame([CustomObject()]).transpose()
  
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 7 for calling a global function with example usage: test_err_transpose_object() without return types