def METHOD_NAME(parameters1, parameters2, var1, wires, var2):
    if var2 is True:
        for i, w in enumerate(wires):
            qml.RY(parameters1[i], wires=w)
    if var1 is True:
        qml.templates.BasicEntanglerLayers([parameters2], wires=wires)