<｜begin▁of▁sentence｜>### Instruction:
Given a Cairo context for drawing, can you initialize a CairoPaletteDrawer with an AdvancedGradientPalette consisting of a gradient from white to black with 256 colors?
### Response:
import igraph
def create_palette_drawer(context):
    palette = igraph.drawing.colors.AdvancedGradientPalette(['white', 'black'], n=256)
    drawer = igraph.drawing.colors.CairoPaletteDrawer(context, palette)
    return drawer

# Assuming you have a Cairo context named 'context'
# create_palette_drawer(context)
<|EOT|>
