def METHOD_NAME(n_rows, n_cols, fill, width, height, stroke, stroke_width):
    grid = {}
    for row in range(n_rows):
        for col in range(n_cols):
            grid[f'cell_{row}_{col}'] = g.rect(
                x=col * width,
                y=row * height,
                width=width,
                height=height,
                fill=fill,
                stroke=stroke,
                stroke_width=stroke_width,
            )
    return grid