<｜begin▁of▁sentence｜>### Instruction:
Given a tree where each node has 2 children and there are 3 levels, can you use CairoArrowEdgeDrawer to draw the edges of the tree, ensuring that directed edges are represented with arrows?
### Response:
from igraph import Graph, plot
from igraph.drawing import CairoArrowEdgeDrawer

g = Graph.Tree(3, 2) # create a sample tree graph
visual_style = {'vertex_size': 20}
visual_style['edge_drawer'] = CairoArrowEdgeDrawer()

# Draw the graph to an image file
plot(g, 'tree.png', **visual_style)
<|EOT|>
