code: def wires_pyramid(wires):
      """Wire sequence for the pyramid pattern."""
      sequence = []
      for layer in range(len(wires) // 2):
          block = wires[layer : len(wires) - layer]
          sequence += [
              block.subset([i, i + 1])
              for i in range(0, len(block) - 1, 2)
          ]
      return sequence
  
imports: import pennylane
  from pennylane.wires import Wires
label_desc: Use image node_id 2 for calling a global function with example usage: wires_pyramid(wires) and returns: sequence