code: def test_replace_int_to_int_df() -> None:
      lf = pl.LazyFrame({"a": [1, 2, 3]}, schema={"a": pl.UInt8})
      mapping = {1: 11, 2: 22}
  
      result = lf.select(
          pl.col("a").replace(
              old=pl.Series(mapping.keys()),
              new=pl.Series(mapping.values(), dtype=pl.UInt8),
              default=pl.lit(99).cast(pl.UInt8),
          )
      )
      expected = pl.LazyFrame(
          {"a": [11, 22, 99]}, schema_overrides={"a": pl.UInt8}
      )
      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 25 for calling a global function with example usage: test_replace_int_to_int_df() without return types