class_docstr: Test that single measurements return behavior does not change.
class_docstr_tok: ["Test","that","single","measurements","return","behavior","does","not","change","."]
docstr: Return a single vn entropy.
docstr_tok: ["Return","a","single","vn","entropy","."]
code: def test_vn_entropy(self, device, interface, shots):
      """Return a single vn entropy."""
      dev = qml.device(device, wires=2, shots=shots)
  
      def circuit(x):
          qml.Hadamard(wires=[0])
          qml.CRX(x, wires=[0, 1])
          return qml.vn_entropy(wires=0)
  
      qnode = qml.QNode(circuit, dev)
      qnode.construct([0.5], {})
  
      if dev.shots is not None:
          with pytest.warns(
              UserWarning, match="with finite shots; the returned"
          ):
              res = qml.execute(
                  tapes=[qnode.tape],
                  device=dev,
                  gradient_fn=None,
                  interface=interface,
              )
      else:
          res = qml.execute(
              tapes=[qnode.tape],
              device=dev,
              gradient_fn=None,
              interface=interface,
          )
  
      assert res[0].shape == ()
      assert isinstance(res[0], np.ndarray)
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.measurements import MeasurementProcess
label_desc: Use image node_id 6 for calling the TestSingleReturnExecute obj's underlying member method code with example usage: obj.test_vn_entropy(device, interface, shots) and returns: qml