Data-driven dynamic nonlocal subgrid-scale modeling for the large eddy simulation of turbulent flows