code: def test_multi_index_values_from_missing(multi):
      """
      Raise if df.columns is a MultiIndex,
      values_from is a list of tuples,
      and a tuple is missing
      """
      with pytest.raises(KeyError):
          multi.pivot_wider(
              names_from=[("sec", "extra")], values_from=[("A", "cat")]
          )
  
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 44 for calling a global function with example usage: test_multi_index_values_from_missing(multi) without return types