class_docstr: Tests for the mutual information functions
class_docstr_tok: ["Tests","for","the","mutual","information","functions"]
docstr: Test an error is raised when using shot vectors with mutual_info.
docstr_tok: ["Test","an","error","is","raised","when","using","shot","vectors","with","mutual_info","."]
code: def test_finite_shots_error(self, shots):
      """Test an error is raised when using shot vectors with mutual_info."""
      dev = qml.device("default.qubit", wires=2, shots=shots)
  
      @qml.qnode(device=dev)
      def circuit(x):
          qml.Hadamard(wires=[0])
          qml.CRX(x, wires=[0, 1])
          return qml.mutual_info(wires0=[0], wires1=[1])
  
      with pytest.raises(
          qml.DeviceError,
          match="not accepted with finite shots on default.qubit",
      ):
          circuit(0.5)
  
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 2 for calling the TestIntegration obj's underlying member method code with example usage: obj.test_finite_shots_error(shots) and returns: qml