<｜begin▁of▁sentence｜>### Instruction:
Given a drawing context in Cairo, how can you set the bounding box for rendering text with the CairoTextDrawer from the igraph library, and then draw text within that bounding box?
### Response:
from igraph.drawing.text import CairoTextDrawer
from igraph import Graph
import cairo

# Create a surface to draw on
surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, 640, 480)
context = cairo.Context(surface)

text_drawer = CairoTextDrawer(context)
# Set the bounding box for the text
text_drawer.bbox = ((100, 100), (540, 380))

# Draw some text within the bounding box
text_drawer.draw_text('Hello, World!')

# Save the surface to a file
surface.write_to_png('text_drawer_example.png')
<|EOT|>
