def METHOD_NAME(apps, org_id):
    node_model = apps.get_model('assets', 'Node')
    child_pattern = r'^[0-9]+:[0-9]+$'
    node_keys = node_model.objects.filter(org_id=org_id) \
        .filter(key__regex=child_pattern) \
        .values_list('key', flat=True)
    if node_keys:
        node_key_split = [key.split(':') for key in node_keys]
        next_value = max([int(k[1]) for k in node_key_split]) + 1
        parent_key = node_key_split[0][0]
    else:
        root_node = node_model.objects.filter(org_id=org_id) \
            .filter(parent_key='', key__regex=r'^[0-9]+$') \
            .exclude(key__startswith='-') \
            .first()
        if not root_node:
            return
        parent_key = root_node.key
        next_value = 0
    next_key = '{}:{}'.format(parent_key, next_value)
    name = 'Apps'
    parent = node_model.objects.get(key=parent_key)
    full_value = parent.full_value + '/' + name
    defaults = {
        'key': next_key, 'value': name, 'parent_key': parent_key,
        'full_value': full_value, 'org_id': org_id
    }
    node, created = node_model.objects.get_or_create(
        defaults=defaults, value=name, org_id=org_id,
    )
    node.parent = parent
    return node