code: def test_non_unique_index_names_from_combination():
      """
      Raise ValueError for non-unique combination of
      `index` and `names_from`.
      """
      df = pd.DataFrame(
          {
              "A": ["A", "A", "A"],
              "L": ["L", "L", "L"],
              "numbers": [30, 54, 25],
          }
      )
      with pytest.raises(ValueError):
          df.pivot_wider(
              index="A", names_from="L", values_from="numbers"
          )
  
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 18 for calling a global function with example usage: test_non_unique_index_names_from_combination() without return types