code: def test_struct_logical_types_to_pandas() -> None:
      timestamp = datetime(2022, 1, 1)
      df = pd.DataFrame([{"struct": {"timestamp": timestamp}}])
      assert pl.from_pandas(df).dtypes == [pl.Struct]
  
imports: from __future__ import annotations
  from dataclasses import dataclass
  from datetime import datetime, time
  from typing import TYPE_CHECKING
  import pandas
  import pyarrow
  import pytest
  import polars
  import polars.selectors
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 11 for calling a global function with example usage: test_struct_logical_types_to_pandas() without return types