<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def get_tag(self, tagtype):
        ''' Get the first tag of a particular type'''
        for tag in self.__tags:
            if tag.tagtype == tagtype:
                return tag
        return None