code: def test_coalesce() -> None:
      df = pl.DataFrame(
          {
              "a": [1, None, None, None],
              "b": [1, 2, None, None],
              "c": [5, None, 3, None],
          }
      )
  
      # List inputs
      expected = pl.Series("d", [1, 2, 3, 10]).to_frame()
      result = df.select(pl.coalesce(["a", "b", "c", 10]).alias("d"))
      assert_frame_equal(expected, result)
  
      # Positional inputs
      expected = pl.Series("d", [1.0, 2.0, 3.0, 10.0]).to_frame()
      result = df.select(
          pl.coalesce(pl.col(["a", "b", "c"]), 10.0).alias("d")
      )
      assert_frame_equal(result, expected)
  
imports: from __future__ import annotations
  from datetime import timedelta
  from typing import TYPE_CHECKING
  import numpy
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 11 for calling a global function with example usage: test_coalesce() without return types