def updated(d, *args, **kwargs):
    d = d.copy()
    d.update(*args, **kwargs)
    return d
Copy dictionary and update it with provided arguments
dataset/ETHPy150Open powerline/powerline/powerline/lib/dict.py/updated