<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def flatatt(attrs):
 """ Convert a dictionary of attributes to a single string. Passed attributes are redirected to `django.forms.utils.flatatt()` with replaced "_" (underscores) by "-" (dashes) in their names. """

    return _flatatt({k.replace('_', '-'): v for k, v in attrs.items()})