parameters: (self, element, attrs)
return_statement: return element
docstring: Set attributes on given element.
  
          :param element: DOM Element
          :type element: Element
          :param attrs: Attributes for element
          :type attrs: dict
docstring_summary: Set attributes on given element.
docstring_tokens: Set attributes on given element .
function: def _attrs(self, element, attrs):
          """
          Set attributes on given element.
  
          :param element: DOM Element
          :type element: Element
          :param attrs: Attributes for element
          :type attrs: dict
          """
          for attr, val in list(attrs.items()):
              element.setAttribute(attr, val)
          return element
function_tokens: def _attrs ( self , element , attrs ) : for attr , val in list ( attrs . items ( ) ) : element . setAttribute ( attr , val ) return element