code: def test_map_dict_deprecated() -> None:
      s = pl.Series("a", [1, 2, 3])
      with pytest.deprecated_call():
          result = s.map_dict({2: 100})
      expected = pl.Series("a", [None, 100, None])
      assert_series_equal(result, expected)
  
      with pytest.deprecated_call():
          result = (
              s.to_frame()
              .select(pl.col("a").map_dict({2: 100}))
              .to_series()
          )
      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 50 for calling a global function with example usage: test_map_dict_deprecated() without return types