(self, model)
gets the losses for that specific model
    :param modeL; the key in the models dictionary.
gets the losses for that specific model
    :param modeL; the key in the models dictionary.
gets the losses for that specific model : param modeL ; the key in the models dictionary .
def get_losses(self, model):
    '''
    gets the losses for that specific model
    :param modeL; the key in the models dictionary.
    '''
    if model in self.models:
        if 'losses' in self.models[model].keys():
            return self.models[model]['losses']
        else:
            raise Exception("Losses are not defined for {}".format(model))
    else:
        raise Exception(
            "The requested model has not been applied to the client.")
def get_losses ( self , model ) : if model in self . models : if 'losses' in self . models [ model ] . keys ( ) : return self . models [ model ] [ 'losses' ] else : raise Exception ( "Losses are not defined for {}" . format ( model ) ) else : raise Exception ( "The requested model has not been applied to the client." )