def modify_number_pattern(number_pattern, **kwargs):
params = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>for param in params:<EOL><INDENT>if param in kwargs:<EOL><INDENT>continue<EOL><DEDENT>kwargs[param] = getattr(number_pattern, param)<EOL><DEDENT>return NumberPattern(**kwargs)<EOL>
Modifies a number pattern by specified keyword arguments.