code: def test_excitations(
      electrons, orbitals, delta_sz, singles_exp, doubles_exp
  ):
      r"""Test the correctness of the generated configurations"""
  
      singles, doubles = qchem.excitations(
          electrons, orbitals, delta_sz
      )
  
      assert len(singles) == len(singles_exp)
      assert len(doubles) == len(doubles_exp)
      assert singles == singles_exp
      assert doubles == doubles_exp
  
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 2 for calling a global function with example usage: test_excitations(electrons, orbitals, delta_sz, singles_exp, doubles_exp) without return types