<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_copy_button(self, text, text_to_copy):
 """Writes a button with 'text' which can be used to copy 'text_to_copy' to clipboard when it's clicked."""

        self.write_copy_script = True
        self.write('<button onclick="cp(\'{}\');">{}</button>'
                   .format(text_to_copy, text))