code: def test_mapping_from_excitations_to_wires(
      singles, doubles, wires, singles_wires_exp, doubles_wires_exp
  ):
      r"""Test the correctness of the mapping between indices of the single and double
      excitations and the list of wires to be passed to the quantum circuit
      """
  
      singles_wires, doubles_wires = qchem.excitations_to_wires(
          singles, doubles, wires=wires
      )
  
      assert len(singles_wires) == len(singles_wires_exp)
      assert len(doubles_wires) == len(doubles_wires_exp)
      assert singles_wires == singles_wires_exp
      assert doubles_wires == doubles_wires_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 4 for calling a global function with example usage: test_mapping_from_excitations_to_wires(singles, doubles, wires, singles_wires_exp, doubles_wires_exp) without return types