code: def test_comparison_order_null_broadcasting() -> None:
      # see more: 8183
      exprs = [
          pl.col("v") < pl.col("null"),
          pl.col("null") < pl.col("v"),
          pl.col("v") <= pl.col("null"),
          pl.col("null") <= pl.col("v"),
          pl.col("v") > pl.col("null"),
          pl.col("null") > pl.col("v"),
          pl.col("v") >= pl.col("null"),
          pl.col("null") >= pl.col("v"),
      ]
  
      kwargs = {f"out{i}": e for i, e in zip(range(len(exprs)), exprs)}
  
      # single value, hits broadcasting branch
      df = pl.DataFrame({"v": [42], "null": [None]})
      assert all((df.select(**kwargs).null_count() == 1).rows()[0])
  
      # multiple values, hits default branch
      df = pl.DataFrame({"v": [42, 42], "null": [None, None]})
      assert all((df.select(**kwargs).null_count() == 2).rows()[0])
  
imports: from __future__ import annotations
  import math
  from contextlib import nullcontext
  from typing import Any, ContextManager
  import pytest
  import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 1 for calling a global function with example usage: test_comparison_order_null_broadcasting() without return types