<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write_bubble(self, filename:str):
 """Write in given filename the lines of bubble describing this instance"""

        from bubbletools import converter
        converter.tree_to_bubble(self, filename)