code: def test_ndjson_nested_null() -> None:
      json_payload = """{"foo":{"bar":[{}]}}"""
      df = pl.read_ndjson(io.StringIO(json_payload))
  
      # 'bar' represents an empty list of structs; check the schema is correct (eg: picks
      # up that it IS a list of structs), but confirm that list is empty (ref: #11301)
      assert df.schema == {
          "foo": pl.Struct([pl.Field("bar", pl.List(pl.Struct([])))])
      }
      assert df.to_dict(as_series=False) == {"foo": [{"bar": []}]}
  
imports: from __future__ import annotations
  import datetime
  import io
  import json
  from collections import OrderedDict
  from io import BytesIO
  from typing import TYPE_CHECKING, Any
  import pytest
  import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 11 for calling a global function with example usage: test_ndjson_nested_null() without return types