#NEWLINE# def factory( self , **kwargs ) : #NEWLINE# #INDENT# if ( 'random_state' not in kwargs ) : #NEWLINE# #INDENT# kwargs [ 'random_state' ] = 42 #NEWLINE# #UNINDENT# return self . factory_class ( ** kwargs )