code: def test_scan_empty_csv_with_row_count(tmp_path: Path) -> None:
      tmp_path.mkdir(exist_ok=True)
      file_path = tmp_path / "small.parquet"
      df = pl.DataFrame({"a": []})
      df.write_csv(file_path)
  
      read = pl.scan_csv(file_path).with_row_count("idx")
      assert read.collect().schema == OrderedDict(
          [("idx", pl.UInt32), ("a", pl.String)]
      )
  
imports: from __future__ import annotations
  from collections import OrderedDict
  from typing import TYPE_CHECKING
  import numpy
  import pytest
  import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 17 for calling a global function with example usage: test_scan_empty_csv_with_row_count(tmp_path) without return types