<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def attribute(self, tag, name):
 """ return attribute by tag and attribute name """

        if tag in self._tags and name in self._tags[tag]:
            return self._tags[tag][name]