code: def test_replace_bool_to_int() -> None:
      s = pl.Series([True, False, False, None])
      mapping = {True: 1, False: 0}
      result = s.replace(mapping)
      expected = pl.Series([1, 0, 0, None])
      assert_series_equal(result, expected)
  
imports: from __future__ import annotations
  import contextlib
  from typing import Any
  import pytest
  import polars
  from polars.exceptions import CategoricalRemappingWarning
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 35 for calling a global function with example usage: test_replace_bool_to_int() without return types