def METHOD_NAME(self, shapes):
    H, W = self.image_size
    background_color = np.random.randint(0, 255, size=3)
    image = np.ones([H, W, 3], dtype=np.uint8)
    image = image * background_color.astype(np.uint8)
    for shape, color, dimensions in shapes:
        image = self._draw_shape(image, shape, dimensions, color)
    return image