<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_profiles(self):
 """Returns set of profile names referenced in this Feature :returns: set of profile names """

        out = set(x.profile for x in self.requires if x.profile)
        out.update(x.profile for x in self.removes if x.profile)
        return out