def _merge_config(dst, another, merge_keys):
  if another is None:
    return {} if dst is None else dst
  if getattr(another, 'iteritems', None):
    for k, v in another.iteritems():
      if k in merge_keys and k in dst:
        dst[k].update(v)
      else:
        dst[k] = copy.deepcopy(v)
  return dst
dataset/ETHPy150Open IanLewis/kay/kay/ext/media_compressor/media_compiler.py/_merge_config/original