<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def serialize_math(ctx, document, elem, root):
 """Serialize math element. Math objects are not supported at the moment. This is wht we only show error message. """


    _div = etree.SubElement(root, 'span')
    if ctx.options['embed_styles']:
        _div.set('style', 'border: 1px solid red')
    _div.text = 'We do not support Math blocks at the moment.'

    fire_hooks(ctx, document, elem, _div, ctx.get_hook('math'))

    return root