<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def find_parent_id_for_component(self, slug):
 """ Given the slug of a description, returns the parent description's slug. :param string slug: The slug of a description. :return: The URL of the parent record. :rtype: string """

        response = self.get_record(slug)

        if "parent" in response:
            return response["parent"]
        # resource was passed in, which has no higher-up record;
        # return the same ID
        else:
            return slug