def serialize_options(options, block):
for index, option_dict in enumerate(block.options):<EOL><INDENT>option = etree.SubElement(options, '<STR_LIT>')<EOL>if index == block.correct_answer:<EOL><INDENT>option.set('<STR_LIT>', u'<STR_LIT:True>')<EOL>if hasattr(block, '<STR_LIT>'):<EOL><INDENT>rationale = etree.SubElement(option, '<STR_LIT>')<EOL>rationale.text = block.correct_rationale['<STR_LIT:text>']<EOL><DEDENT><DEDENT>text = etree.SubElement(option, '<STR_LIT:text>')<EOL>text.text = option_dict.get('<STR_LIT:text>', '<STR_LIT>')<EOL>serialize_image(option_dict, option)<EOL><DEDENT>
Serialize the options in peer instruction XBlock to xml

Args:
    options (lxml.etree.Element): The <options> XML element.
    block (PeerInstructionXBlock): The XBlock with configuration to serialize.

Returns:
    None