code: def flatatt(attrs):
      
      return _flatatt({k.replace('_', '-'): v for k, v in attrs.items()})
docs: 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.