code: def test_sink_ndjson_should_write_same_data(
      io_files_path: Path, tmp_path: Path
  ) -> None:
      tmp_path.mkdir(exist_ok=True)
      # Arrange
      source_path = io_files_path / "foods1.csv"
      target_path = tmp_path / "foods_test.ndjson"
      expected = pl.read_csv(source_path)
      lf = pl.scan_csv(source_path)
      # Act
      lf.sink_ndjson(target_path)
      df = pl.read_ndjson(target_path)
      # Assert
      assert_frame_equal(df, expected)
  
file_path: polars/py-polars/tests/unit/io/test_lazy_json.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  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_sink_ndjson_should_write_same_data(io_files_path, tmp_path) without return types