class_docstr: Test inputs and pre-processing.
class_docstr_tok: ["Test","inputs","and","pre-processing","."]
docstr: Tests if errors are thrown for invalid permutations with tapes.
docstr_tok: ["Tests","if","errors","are","thrown","for","invalid","permutations","with","tapes","."]
code: def test_invalid_inputs_tape(
      self, permutation_order, expected_error_message
  ):
      """Tests if errors are thrown for invalid permutations with tapes."""
  
      wire_labels = [0, 2, "a", "c", 1]
  
      with qml.queuing.AnnotatedQueue() as q:
          with pytest.raises(ValueError, match=expected_error_message):
              qml.Permute(permutation_order, wires=wire_labels)
  
      qml.tape.QuantumScript.from_queue(q)
  
imports: import pytest
  import numpy
  import pennylane
label_desc: Use image node_id 2 for calling the TestInputs obj's underlying member method code with example usage: obj.test_invalid_inputs_tape(permutation_order, expected_error_message) without return types