<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def embed_seqdiag_sequence(self):
 """Create a message sequence diagram png file to output folder and embed the image to log file. You need to have seqdiag installed to create the sequence diagram. See http://blockdiag.com/en/seqdiag/ """

        test_name = BuiltIn().replace_variables('${TEST NAME}')
        outputdir = BuiltIn().replace_variables('${OUTPUTDIR}')
        path = os.path.join(outputdir, test_name + '.seqdiag')
        SeqdiagGenerator().compile(path, self._message_sequence)