code: def test_write_ndjson_with_trailing_newline() -> None:
      input = """{"Column1":"Value1"}\n"""
      df = pl.read_ndjson(io.StringIO(input))
  
      expected = pl.DataFrame({"Column1": ["Value1"]})
      assert_frame_equal(df, expected)
  
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 9 for calling a global function with example usage: test_write_ndjson_with_trailing_newline() without return types