code: def test_integration():
      """Test that the execution of lightning.qubit is possible and agrees with default.qubit"""
      wires = 2
      layers = 2
      dev_l = qml.device("lightning.qubit", wires=wires)
      dev_d = qml.device("default.qubit", wires=wires)
  
      def circuit(weights):
          qml.templates.StronglyEntanglingLayers(
              weights, wires=range(wires)
          )
          return qml.expval(qml.PauliZ(0))
  
      np.random.seed(1967)
      weights = np.random.random(
          qml.templates.StronglyEntanglingLayers.shape(layers, wires),
          requires_grad=True,
      )
  
      qn_l = qml.QNode(circuit, dev_l)
      qn_d = qml.QNode(circuit, dev_d)
  
      assert np.allclose(qn_l(weights), qn_d(weights))
      assert np.allclose(
          qml.grad(qn_l)(weights), qml.grad(qn_d)(weights)
      )
  
file_path: pennylane/tests/devices/test_lightning_qubit.py
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: test_integration() and returns: qml