code: def test_excited_configurations_error(excitation):
      r"""Test that an error is raised by _excited_configurations if a wrong excitation is entered."""
      with pytest.raises(ValueError, match="excitations are supported"):
          _ = qchem.convert._excited_configurations(2, 4, excitation)
  
imports: import os
  import sys
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane import qchem
  from pennylane.operation import disable_new_opmath, enable_new_opmath
label_desc: Use image node_id 26 for calling a global function with example usage: test_excited_configurations_error(excitation) without return types