class_docstr: Tests for the mutual_info function
class_docstr_tok: ["Tests","for","the","mutual_info","function"]
docstr: Test that the shape is correct.
docstr_tok: ["Test","that","the","shape","is","correct","."]
code: def test_shape(self, shots, shape):
      """Test that the shape is correct."""
      dev = qml.device("default.qubit", wires=3, shots=shots)
      res = qml.mutual_info(wires0=[0], wires1=[1])
      assert res.shape(dev, Shots(shots)) == shape
  
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 TestMutualInfoUnitTests obj's underlying member method code with example usage: obj.test_shape(shots, shape) without return types