<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def split(self, length, vertical=True):
 """ Returns two bounding boxes representing the current bounds split into two smaller boxes. Parameters length: float, length to split vertical: bool, if True will split box vertically Returns box: (2,4) float, two bounding boxes consisting of: [minx, miny, maxx, maxy] """

        # also know as [minx, miny, maxx, maxy]
        [left, bottom, right, top] = self.bounds
        if vertical:
            box = [[left, bottom, left + length, top],
                   [left + length, bottom, right, top]]
        else:
            box = [[left, bottom, right, bottom + length],
                   [left, bottom + length, right, top]]
        return box