class_docstr: Test the purity meausrement with qnodes and devices.
class_docstr_tok: ["Test","the","purity","meausrement","with","qnodes","and","devices","."]
docstr: Test that purity can be returned with custom wires.
docstr_tok: ["Test","that","purity","can","be","returned","with","custom","wires","."]
code: def test_qnode_entropy_custom_wires(self, device, param):
      """Test that purity can be returned with custom wires."""
  
      dev = qml.device(device, wires=["a", 1])
  
      @qml.qnode(dev)
      def circuit(x):
          qml.IsingXX(x, wires=["a", 1])
          return qml.purity(wires=["a"])
  
      purity = circuit(param)
      expected_purity = expected_purity_ising_xx(param)
      assert qml.math.allclose(purity, expected_purity)
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.measurements import PurityMP, Shots
label_desc: Use image node_id 13 for calling the TestPurityIntegration obj's underlying member method code with example usage: obj.test_qnode_entropy_custom_wires(device, param) and returns: qml