#NEWLINE# def _register( self , metric_class , name , * args , **kwargs ) : #NEWLINE# #INDENT# full_name = ( '%s_%s' % ( self . name_prefix , name ) ) #NEWLINE# metric = metric_class ( full_name , * args , ** kwargs ) #NEWLINE# all_metrics [ full_name ] = metric #NEWLINE# return metric