<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_tags(self, tagtype):
        ''' Get all tags of a type '''
        return [t for t in self.__tags if t.tagtype == tagtype]