code: def test_struct_with_nulls_as_list() -> None:
      df = pl.DataFrame([[{"a": 1, "b": 2}], [{"c": 3, "d": None}]])
      assert df.select(
          pl.concat_list(pl.all()).alias("as_list")
      ).to_dict(as_series=False) == {
          "as_list": [
              [
                  {"a": 1, "b": 2, "c": None, "d": None},
                  {"a": None, "b": None, "c": 3, "d": None},
              ]
          ]
      }
  
imports: from __future__ import annotations
  import pickle
  from datetime import date, datetime, time
  from typing import TYPE_CHECKING, Any
  import pandas
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 35 for calling a global function with example usage: test_struct_with_nulls_as_list() without return types