block
Extracts a sub-block from a 2D list of rectangles based on the specified coordinates and dimensions.
Return
A 2D list of rectangles representing the extracted block.
Parameters
x
The horizontal starting index of the block.
y
The vertical starting index of the block.
width
The width of the block, specifying the number of columns to include.
height
The height of the block, specifying the number of rows to include.