code: def test_presence_names_from2(df_checks_output):
      """Raise KeyError if labels in `names_from` do not exist."""
      with pytest.raises(KeyError):
          df_checks_output.pivot_wider(
              index="geoid", names_from=["estimat"]
          )
  
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 8 for calling a global function with example usage: test_presence_names_from2(df_checks_output) without return types