How do I create a battery splitter in Python

Hello, now I have a problem. When I use the battery generation program, I can’t split them into three levels. Like the original battery in the picture,Use vertical lines to separate them. How can I implement such functionality in Python?
image

I haven’t tested this in .ghpy but I’d try either

instance.Exposure = Grasshopper.Kernel.GH_Exposure.primary

somewhere in the constructor
image
(referenced from here Tutorial: creating a Grasshopper component with the Python GHPY compiler )

Or it is a function override like such:

def Exposure(self):
    return Grasshopper.Kernal.GH_Exposure.primary

primary means the first group, secondary the second and so on. They are separated by the divider you’re looking for.