def get_parent_notification_type(node, event, user):
    if node and isinstance(node, Node) and node.node__parent and node.parent_node.has_permission(user, 'read'):
        for parent in node.node__parent:
            key = to_subscription_key(parent._id, event)
            try:
                subscription = model.NotificationSubscription.find_one(Q('_id', 'eq', key))
            except NoResultsFound:
                return get_parent_notification_type(parent, event, user)

            for notification_type in constants.NOTIFICATION_TYPES:
                if user in getattr(subscription, notification_type):
                    return notification_type
            else:
                return get_parent_notification_type(parent, event, user)
    else:
        return None
Download the file at url to target using Powershell (which will validate
dataset/ETHPy150Open CenterForOpenScience/osf.io/website/notifications/utils.py/get_parent_notification_type--crossover with--dataset/ETHPy150Open akamai-open/api-kickstart/examples/python/tools/ez_setup.py/download_file_powershell