@utils.memoize_instancemethod
    def ischild(self, y, of):
        result = False
        while (result is False) and (y != 'defaults'):
            parent = self.parents[y]
            if parent == of:
                result = True
            y = parent
        return result
Returns True if ``y`` is a child of ``of``, else False
dataset/ETHPy150Open calliope-project/calliope/calliope/core.py/Model.ischild