<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_relationship_key(self, context):
 """Return the configured relationship key or generate a new one """

        if not self.relationship:
            return context.portal_type + self.getName()
        return self.relationship