code: def test_replace_str_to_str_replace_all() -> None:
      df = pl.DataFrame({"text": ["abc"]})
      mapping = {"abc": "123"}
      result = df.select(
          pl.col("text").replace(mapping).str.replace_all("1", "-")
      )
      expected = pl.DataFrame({"text": ["-23"]})
      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 24 for calling a global function with example usage: test_replace_str_to_str_replace_all() without return types