class_docstr: Tests the built-in patterns ("single", "ring", etc) of the broadcast template constructor.
class_docstr_tok: ["Tests","the","built-in","patterns","(","``","single","''",",","``","ring","''",",","etc",")","of","the","broadcast","template","constructor","."]
docstr: Tests that the wire list generating functions for different patterns create the correct sequence.
docstr_tok: ["Tests","that","the","wire","list","generating","functions","for","different","patterns","create","the","correct","sequence","."]
code: def test_wire_sequence_generating_functions(
      self, function, wires, target
  ):
      """Tests that the wire list generating functions for different patterns create the correct sequence."""
  
      wires = Wires(wires)
      sequence = function(wires)
      for w, t in zip(sequence, target):
          assert w.tolist() == t
  
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 9 for calling the TestBuiltinPatterns obj's underlying member method code with example usage: obj.test_wire_sequence_generating_functions(function, wires, target) without return types