code: def test_excitations_to_wires_exceptions(
      singles, doubles, wires, message_match
  ):
      r"""Test that the function 'excitations_to_wires()' throws an exception if ``singles``,
      ``doubles`` or ``wires`` parameter has illegal shapes or size"""
  
      with pytest.raises(ValueError, match=message_match):
          qchem.excitations_to_wires(singles, doubles, wires=wires)
  
imports: import os
  import sys
  import functools
  from unittest.mock import patch
  import pytest
  import pennylane
  from pennylane import qchem
  from pennylane import numpy
  from pennylane.templates.subroutines import UCCSD
label_desc: Use image node_id 5 for calling a global function with example usage: test_excitations_to_wires_exceptions(singles, doubles, wires, message_match) without return types