code: def test_rename_positional_named(self):
      # https://github.com/pandas-dev/pandas/issues/12392
      df = DataFrame({"a": [1, 2], "b": [1, 2]}, index=["X", "Y"])
      result = df.rename(index=str.lower, columns=str.upper)
      expected = DataFrame({"A": [1, 2], "B": [1, 2]}, index=["x", "y"])
      tm.assert_frame_equal(result, expected)
  
imports: from collections import ChainMap
  import inspect
  import numpy
  import pytest
  from pandas import DataFrame, Index, MultiIndex, merge
  import pandas._testing
label_desc: Use image node_id 15 for calling the TestRename obj's underlying member method code with example usage: obj.test_rename_positional_named() without return types