class_docstr: Tests for the insert function using input tapes
docstr: Tests if a ValueError is raised when multiqubit operations are requested
docstr_tok: ["Tests","if","a","ValueError","is","raised","when","multiqubit","operations","are","requested"]
code: def test_multiwire_op(self):
      """Tests if a ValueError is raised when multiqubit operations are requested"""
      with pytest.raises(
          ValueError,
          match="Only single-qubit operations can be inserted into",
      ):
          insert(self.tape, qml.CNOT, [])
  
imports: from functools import partial
  import numpy
  import pytest
  import pennylane
  from pennylane.measurements import Expectation
  from pennylane.tape import QuantumScript
  from pennylane.transforms.insert_ops import insert
label_desc: Use image node_id 1 for calling the TestInsert obj's underlying member method code with example usage: obj.test_multiwire_op() without return types