class_docstr: Test that the correct errors are raised
class_docstr_tok: ["Test","that","the","correct","errors","are","raised"]
docstr: Test an error is raised when a control wire is in one of the ops
docstr_tok: ["Test","an","error","is","raised","when","a","control","wire","is","in","one","of","the","ops"]
code: def test_control_in_ops(self, ops, control, msg_match):
      """Test an error is raised when a control wire is in one of the ops"""
      with pytest.raises(ValueError, match=msg_match):
          qml.Select(ops, control)
  
imports: import copy
  import pytest
  import numpy
  from pennylane import numpy
  import pennylane
label_desc: Use image node_id 1 for calling the TestErrorMessages obj's underlying member method code with example usage: obj.test_control_in_ops(ops, control, msg_match) without return types