code: def test_rename_no_mappings_raises(self):
      # GH 29136
      df = DataFrame([[1]])
      msg = "must pass an index to rename"
      with pytest.raises(TypeError, match=msg):
          df.rename()
  
      with pytest.raises(TypeError, match=msg):
          df.rename(None, index=None)
  
      with pytest.raises(TypeError, match=msg):
          df.rename(None, columns=None)
  
      with pytest.raises(TypeError, match=msg):
          df.rename(None, columns=None, index=None)
  
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 18 for calling the TestRename obj's underlying member method code with example usage: obj.test_rename_no_mappings_raises() without return types