def merge_dicts(*dicts, **copy_check):
merged = {}<EOL>if not dicts:<EOL><INDENT>return merged<EOL><DEDENT>for index, merge_dict in enumerate(dicts):<EOL><INDENT>if index == <NUM_LIT:0> and not copy_check.get('<STR_LIT>'):<EOL><INDENT>merged = merge_dict<EOL><DEDENT>else:<EOL><INDENT>merged.update(merge_dict)<EOL><DEDENT><DEDENT>return merged<EOL>
Combines dictionaries into a single dictionary. If the 'copy' keyword is passed
then the first dictionary is copied before update.

merge_dicts({'a': 1, 'c': 1}, {'a': 2, 'b': 1})
# => {'a': 2, 'b': 1, 'c': 1}