code: def test_remove_redundant_mapping_4668() -> None:
      df = pl.DataFrame([["a"]] * 2, ["A", "B "]).lazy()
      clean_name_dict = {x: " ".join(x.split()) for x in df.columns}
      df = df.rename(clean_name_dict)
      assert df.columns == ["A", "B"]
  
imports: from __future__ import annotations
  from collections import OrderedDict
  from datetime import date, timedelta
  from typing import Any, Iterator, Mapping
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 14 for calling a global function with example usage: test_remove_redundant_mapping_4668() without return types