class_docstr: Tests for the mutual information functions
class_docstr_tok: ["Tests","for","the","mutual","information","functions"]
docstr: Test that mutual_info is correct with custom wire labels
docstr_tok: ["Test","that","mutual_info","is","correct","with","custom","wire","labels"]
code: def test_mutual_info_wire_labels(self, device):
      """Test that mutual_info is correct with custom wire labels"""
      param = np.array([0.678, 1.234])
      wires = ["a", 8]
      dev = qml.device(device, wires=wires)
  
      @qml.qnode(dev)
      def circuit(param):
          qml.RY(param, wires=wires[0])
          qml.CNOT(wires=wires)
          return qml.state()
  
      actual = qml.qinfo.mutual_info(
          circuit, wires0=[wires[0]], wires1=[wires[1]]
      )(param)
  
      # compare transform results with analytic values
      expected = -2 * np.cos(param / 2) ** 2 * np.log(
          np.cos(param / 2) ** 2
      ) - 2 * np.sin(param / 2) ** 2 * np.log(np.sin(param / 2) ** 2)
  
      assert np.allclose(actual, expected)
  
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 5 for calling the TestIntegration obj's underlying member method code with example usage: obj.test_mutual_info_wire_labels(device) and returns: qml