<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_attr_text(self):
 """Get html attr text to render in template"""

        return ' '.join([
            '{}="{}"'.format(key, value)
            for key, value in self.attr.items()
        ])