class_docstr: Tests for the qml.map_wires method used with operators.
class_docstr_tok: ["Tests","for","the","qml.map_wires","method","used","with","operators","."]
docstr: Test that an error is raised when trying to map the wires of an unsupported object.
docstr_tok: ["Test","that","an","error","is","raised","when","trying","to","map","the","wires","of","an","unsupported","object","."]
code: def test_map_wires_unsupported_object_raises_error(self):
      """Test that an error is raised when trying to map the wires of an unsupported object."""
      with pytest.raises(
          ValueError, match="Cannot map wires of object"
      ):
          qml.map_wires("unsupported type", wire_map=wire_map)
  
imports: from functools import partial
  import pytest
  import pennylane
  from pennylane.ops import Prod
  from pennylane.tape import QuantumScript
  from pennylane.wires import Wires
label_desc: Use image node_id 5 for calling the TestMapWiresOperators obj's underlying member method code with example usage: obj.test_map_wires_unsupported_object_raises_error() without return types