<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getAttrs(self, node):
 """Return a Collection of all attributes """

        attrs = {}
        for k,v in node._attrs.items():
            attrs[k] = v.value
        return attrs