def METHOD_NAME(nodes, assets):
    node_asset_ids = Node.get_nodes_all_assets(*nodes).values_list('id', flat=True)
    direct_asset_ids = [asset.id for asset in assets]
    asset_ids = set(direct_asset_ids + list(node_asset_ids))
    return Asset.objects.filter(id__in=asset_ids)