docstr: Test mapping wires works as expected, including mapping wires on the base operator
docstr_tok: ["Test","mapping","wires","works","as","expected",",","including","mapping","wires","on","the","base","operator"]
code: def test_map_wires(self):
      """Test mapping wires works as expected, including mapping wires on the base operator"""
  
      op = qml.ControlledSequence(qml.CNOT([0, 1]), control=[2, 3])
      wire_map = {0: "a", 1: "b", 2: "c", 3: "d"}
  
      new_op = op.map_wires(wire_map)
  
      assert type(new_op) == type(op)
      assert type(new_op.base) == type(op.base)
      assert new_op.data == op.data
  
      assert new_op.wires == Wires(["c", "d", "a", "b"])
      assert new_op.base.wires == Wires(["a", "b"])
      assert new_op.control == Wires(["c", "d"])
  
imports: import pytest
  import numpy
  from pennylane import numpy
  import pennylane
  from pennylane.wires import Wires
label_desc: Use image node_id 2 for calling the TestMethods obj's underlying member method code with example usage: obj.test_map_wires() without return types