<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def resource_types(self):
 """resource types used by the collection."""

        rtypes = set()
        for p in self.policies:
            rtypes.add(p.resource_type)
        return rtypes