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