code: def test_struct_to_list() -> None:
      assert pl.DataFrame(
          {
              "int": [1, 2],
              "str": ["a", "b"],
              "bool": [True, None],
              "list": [[1, 2], [3]],
          }
      ).select(
          [pl.struct(pl.all()).alias("my_struct")]
      ).to_series().to_list() == [
          {"int": 1, "str": "a", "bool": True, "list": [1, 2]},
          {"int": 2, "str": "b", "bool": None, "list": [3]},
      ]
  
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 1 for calling a global function with example usage: test_struct_to_list() without return types