code: def test_type_names_from(df_checks_output):
      """Raise TypeError if wrong type is provided for `names_from`."""
      with pytest.raises(TypeError):
          df_checks_output.pivot_wider(
              index="geoid", names_from={"variable"}
          )
  
      with pytest.raises(TypeError):
          df_checks_output.pivot_wider(
              index="geoid", names_from=("variable",)
          )
  
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 3 for calling a global function with example usage: test_type_names_from(df_checks_output) without return types