code: def setdefaults(dct, defaults):
      
      for key in defaults:
          dct.setdefault(key, defaults[key])
  
      return dct
docs: Given a target dct and a dict of {key:default value} pairs,
      calls setdefault for all of those pairs.