Briefly, each UE trains a local FL model with its collected data and then sends the trained FL model to an edge server at the gNB which aggregates the FL models and transmits it back to all the UEs. I plan to use MATLAB/Python for federated learning and NetSim for 5G simulation. (i) How can we establish a connection between NetSim and Python for this kind of application? (ii) Which KPIs should I monitor to assess the performance of federated learning?