class_docstr: Tests for the mutual information functions
class_docstr_tok: ["Tests","for","the","mutual","information","functions"]
docstr: Test the output of qml.mutual_info
docstr_tok: ["Test","the","output","of","qml.mutual_info"]
code: def test_mutual_info_output(self, interface, state, expected):
      """Test the output of qml.mutual_info"""
      dev = qml.device("default.qubit", wires=4)
  
      @qml.qnode(dev, interface=interface)
      def circuit():
          qml.StatePrep(state, wires=[0, 1])
          return qml.mutual_info(wires0=[0, 2], wires1=[1, 3])
  
      res = circuit()
      assert np.allclose(res, expected, atol=1e-6)
  
imports: import copy
  import numpy
  import pytest
  import pennylane
  from pennylane.measurements import MutualInfo, Shots
  from pennylane.measurements.mutual_info import MutualInfoMP
  from pennylane.wires import Wires
label_desc: Use image node_id 1 for calling the TestIntegration obj's underlying member method code with example usage: obj.test_mutual_info_output(interface, state, expected) and returns: qml