code: def test_streaming_9776() -> None:
      df = pl.DataFrame(
          {"col_1": ["a"] * 1000, "ID": [None] + ["a"] * 999}
      )
      ordered = (
          df.group_by("col_1", "ID", maintain_order=True)
          .count()
          .filter(pl.col("col_1") == "a")
      )
      unordered = (
          df.group_by("col_1", "ID", maintain_order=False)
          .count()
          .filter(pl.col("col_1") == "a")
      )
      expected = [("a", None, 1), ("a", "a", 999)]
      assert ordered.rows() == expected
      assert unordered.sort(["col_1", "ID"]).rows() == expected
  
imports: from __future__ import annotations
  import os
  import tempfile
  import time
  from datetime import date
  from pathlib import Path
  from typing import TYPE_CHECKING, Any
  import numpy
  import pytest
  import polars
  from polars.exceptions import PolarsInefficientMapWarning
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 11 for calling a global function with example usage: test_streaming_9776() without return types