class_docstr: Tests for the mutual information functions
class_docstr_tok: ["Tests","for","the","mutual","information","functions"]
docstr: Test that an error is raised if a device or device wires are given
  to the mutual_info transform manually.
docstr_tok: ["Test","that","an","error","is","raised","if","a","device","or","device","wires","are","given","to","the","mutual_info","transform","manually","."]
code: def test_mutual_info_cannot_specify_device(self):
      """Test that an error is raised if a device or device wires are given
      to the mutual_info transform manually."""
      dev = qml.device("default.qubit", wires=2)
  
      @qml.qnode(dev)
      def circuit(params):
          qml.RY(params, wires=0)
          qml.CNOT(wires=[0, 1])
          return qml.state()
  
      with pytest.raises(
          ValueError, match="Cannot provide a 'device' value"
      ):
          _ = qml.qinfo.mutual_info(
              circuit, wires0=[0], wires1=[1], device=dev
          )
  
      with pytest.raises(
          ValueError, match="Cannot provide a 'device_wires' value"
      ):
          _ = qml.qinfo.mutual_info(
              circuit, wires0=[0], wires1=[1], device_wires=dev.wires
          )
  
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 6 for calling the TestIntegration obj's underlying member method code with example usage: obj.test_mutual_info_cannot_specify_device() and returns: qml