code: def test_replace_mix() -> None:
      df = pl.DataFrame(
          [
              pl.Series("float_to_boolean", [1.0, None]),
              pl.Series("boolean_to_int", [True, False]),
              pl.Series("boolean_to_str", [True, False]),
          ]
      )
  
      result = df.with_columns(
          pl.col("float_to_boolean").replace({1.0: True}, default=None),
          pl.col("boolean_to_int").replace({True: 1, False: 0}),
          pl.col("boolean_to_str").replace({True: "1", False: "0"}),
      )
  
      expected = pl.DataFrame(
          [
              pl.Series(
                  "float_to_boolean", [True, None], dtype=pl.Boolean
              ),
              pl.Series("boolean_to_int", [1, 0], dtype=pl.Int64),
              pl.Series("boolean_to_str", ["1", "0"], dtype=pl.String),
          ]
      )
      assert_frame_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 27 for calling a global function with example usage: test_replace_mix() without return types