Dynamic Network-Assisted D2D-Aided Coded Distributed Learning