def make_net_dict(net_id, net_name, ports):
 res = {const.NET_ID: net_id, const.NET_NAME: net_name}
 res[const.NET_PORTS] = ports
 return res

def make_net_dict ( net_id , net_name , ports ) : res = { const . NET_ID : net_id , const . NET_NAME : net_name } res [ const . NET_PORTS ] = ports return res
helper funciton .