<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def merge_dicts(*ds):
 """Given any number of dicts, shallow copy and merge into a new dict, precedence goes to key value pairs in latter dicts. Notes ----- http://stackoverflow.com/questions/38987/how-to-merge-two-python-dictionaries-in-a-single-expression """

    result = ds[0]
    for d in ds[1:]:
        result.update(d)
    return result