class_docstr: Tests for the mutual information functions
class_docstr_tok: ["Tests","for","the","mutual","information","functions"]
docstr: Tests that no error is raised when mutual information is measured
  with custom wire labels
docstr_tok: ["Tests","that","no","error","is","raised","when","mutual","information","is","measured","with","custom","wire","labels"]
code: def test_custom_wire_labels_works(self, interface, params):
      """Tests that no error is raised when mutual information is measured
      with custom wire labels"""
      dev = qml.device("default.qubit", wires=["a", "b"])
  
      params = qml.math.asarray(params, like=interface)
  
      @qml.qnode(dev, interface=interface)
      def circuit(params):
          qml.RY(params[0], wires="a")
          qml.RY(params[1], wires="b")
          qml.CNOT(wires=["a", "b"])
          return qml.mutual_info(wires0=["a"], wires1=["b"])
  
      @qml.qnode(dev, interface=interface)
      def circuit_expected(params):
          qml.RY(params[0], wires="a")
          qml.RY(params[1], wires="b")
          qml.CNOT(wires=["a", "b"])
          return qml.state()
  
      actual = circuit(params)
      expected = qml.qinfo.mutual_info(
          circuit_expected, wires0=["a"], wires1=["b"]
      )(params)
      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 16 for calling the TestIntegration obj's underlying member method code with example usage: obj.test_custom_wire_labels_works(interface, params) and returns: qml, qml