class_docstr: Tests for the mutual_info function
class_docstr_tok: ["Tests","for","the","mutual_info","function"]
docstr: Test that map_wires works as expected.
docstr_tok: ["Test","that","map_wires","works","as","expected","."]
code: def test_map_wires(self):
      """Test that map_wires works as expected."""
      mapped1 = MutualInfoMP(wires=[Wires([0]), Wires([1])]).map_wires(
          {0: 1, 1: 0}
      )
      assert mapped1.raw_wires == [Wires([1]), Wires([0])]
      assert qml.equal(
          mapped1, MutualInfoMP(wires=[Wires([1]), Wires([0])])
      )
  
      mapped2 = MutualInfoMP(
          wires=[Wires(["a", "b"]), Wires(["c"])]
      ).map_wires({"a": 0, "b": 1, "c": 2})
      assert mapped2.raw_wires == [Wires([0, 1]), Wires([2])]
      assert qml.equal(
          mapped2, MutualInfoMP(wires=[Wires([0, 1]), Wires([2])])
      )
  
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 7 for calling the TestMutualInfoUnitTests obj's underlying member method code with example usage: obj.test_map_wires() without return types