def METHOD_NAME(self, list):
    """This method returns the list of the parents recursively.
    Params:
        list: reference to the final list.
    Returns:
        The list of all the parents in canonical format (/parent1/parent2).
    """
    if self.parent  is not None:
        list.append("/".join(self.parent.get_path()))
        self.parent.METHOD_NAME(list)
    return list