def apply_func(obj_index: tp.Index) -> tp.Index: return index_fns.rename_levels(obj_index, name_dict, strict=strict)
def apply_func(obj_index): return index_fns.rename_levels(obj_index, name_dict)