code: def test_multiindex_index(multi):
      """
      Raise if df.columns is a MultiIndex,
      index is a list of tuples,
      and not all entries are tuples
      """
      with pytest.raises(TypeError):
          multi.pivot_wider(
              names_from=[("second", "extra")],
              index=[("first", "extra"), "first"],
          )
  
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 40 for calling a global function with example usage: test_multiindex_index(multi) without return types