code: def test_set_axis_name_mi(self, func):
      ser = Series(
          [11, 21, 31],
          index=MultiIndex.from_tuples(
              [("A", x) for x in ["a", "B", "c"]], names=["l1", "l2"]
          ),
      )
  
      result = methodcaller(func, ["L1", "L2"])(ser)
      assert ser.index.name is None
      assert ser.index.names == ["l1", "l2"]
      assert result.index.name is None
      assert result.index.names, ["L1", "L2"]
  
file_path: pandas/pandas/tests/generic/test_series.py
imports: from operator import methodcaller
  import numpy
  import pytest
  import pandas
  from pandas import MultiIndex, Series, date_range
  import pandas._testing
label_desc: Use image node_id 1 for calling the TestSeries obj's underlying member method code with example usage: obj.test_set_axis_name_mi(func) without return types