code: def test_struct_with_validity() -> None:
      data = [{"a": {"b": 1}}, {"a": None}]
      tbl = pa.Table.from_pylist(data)
      df = pl.from_arrow(tbl)
      assert isinstance(df, pl.DataFrame)
      assert df["a"].to_list() == [{"b": 1}, {"b": None}]
  
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 13 for calling a global function with example usage: test_struct_with_validity() without return types