code: def test_rename_should_not_side_effect():
      _categories_df = categories_df.copy()
      pp.rename(
          df=_categories_df,
          columns={
              "constant": "constant_newname",
              "category": "category_namename",
          },
      )
      assert _categories_df.equals(categories_df)
  
file_path: superset/tests/unit_tests/pandas_postprocessing/test_rename.py
imports: import pandas
  import pytest
  from superset.exceptions import InvalidPostProcessingError
  from superset.utils import pandas_postprocessing
  from tests.unit_tests.fixtures.dataframes import categories_df
label_desc: Use image node_id 1 for calling a global function with example usage: test_rename_should_not_side_effect() without return types