class_docstr: Tests for the custom_decomps argument for devices
class_docstr_tok: ["Tests","for","the","custom_decomps","argument","for","devices"]
docstr: Test that sending an empty dictionary results in no decompositions.
docstr_tok: ["Test","that","sending","an","empty","dictionary","results","in","no","decompositions","."]
code: def test_no_custom_decomp(self, device_name):
      """Test that sending an empty dictionary results in no decompositions."""
  
      def circuit():
          qml.Hadamard(wires=0)
          qml.CNOT(wires=[0, 1])
          return qml.expval(qml.PauliZ(0))
  
      original_dev = qml.device(device_name, wires=3)
      decomp_dev = qml.device(device_name, wires=3, custom_decomps={})
  
      original_qnode = qml.QNode(
          circuit, original_dev, expansion_strategy="device"
      )
      decomp_qnode = qml.QNode(
          circuit, decomp_dev, expansion_strategy="device"
      )
  
      original_res = original_qnode()
      decomp_res = decomp_qnode()
  
      assert np.isclose(original_res, decomp_res)
      assert [
          orig_op.name == decomp_op.name
          for orig_op, decomp_op in zip(
              original_qnode.qtape.operations,
              decomp_qnode.qtape.operations,
          )
      ]
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.wires import Wires
label_desc: Use image node_id 2 for calling the TestCreateCustomDecompExpandFn obj's underlying member method code with example usage: obj.test_no_custom_decomp(device_name) and returns: qml