<｜begin▁of▁sentence｜>### Instruction:
Given a need to utilize the CairoTextDrawer for rendering text onto an image with Cairo graphics in Python, write code to create a simple image with 'Hello, world!' text, and save it as 'text_draw_example.png'.
### Response:
from igraph.drawing.text import CairoTextDrawer
from igraph import Graph
import cairo

# Create an image surface to draw
surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, 200, 50)
context = cairo.Context(surface)

txt_drawer = CairoTextDrawer(context, halign=CairoTextDrawer.LEFT)
txt_drawer.set_font_face('Arial')
txt_drawer.set_font_size(15)
txt_drawer.draw_text(10, 25, 'Hello, world!')

# Save the surface to an image file
surface.write_to_png('text_draw_example.png')
<|EOT|>
