code: def test_unknown_pattern():
      """Test that an unknown pattern raises an error"""
      dev = qml.device("default.qubit", wires=2)
  
      @qml.qnode(dev)
      def circuit(pars):
          broadcast(
              unitary=RX,
              wires=range(2),
              pattern="hello",
              parameters=pars,
          )
          return qml.expval(qml.PauliZ(0))
  
      pars = [[1.6], [2.1]]
  
      with pytest.raises(
          ValueError, match="did not recognize pattern hello"
      ):
          circuit(pars)
  
imports: from math import pi
  import pytest
  import numpy
  import pennylane
  from pennylane.templates import broadcast
  from pennylane.ops import RX, RY, T, S, Rot, CRX, CRot, CNOT
  from pennylane.templates.broadcast import wires_pyramid, wires_all_to_all, wires_ring
  from pennylane.wires import Wires
label_desc: Use image node_id 7 for calling a global function with example usage: test_unknown_pattern() and returns: qml