code: def test_multiindex(multi, index, names_from, values_from):
      """
      Raise if df.columns is a MultiIndex
      and index/names_from/values_from
      is not a list of tuples
      """
      with pytest.raises(TypeError):
          multi.pivot_wider(
              index=index,
              names_from=names_from,
              values_from=values_from,
          )
  
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 38 for calling a global function with example usage: test_multiindex(multi, index, names_from, values_from) without return types