code: def create_pars_from_dict(name, pars_dict, rescale=True, update_bounds=False):
      
      o = get_function_defaults(name)
      pars_dict = pars_dict.copy()
  
      for k in o.keys():
  
          if not k in pars_dict:
              continue
  
          v = pars_dict[k]
  
          if not isinstance(v, dict):
              v = {'name': k, 'value': v}
  
          o[k].update(v)
  
          kw = dict(update_bounds=update_bounds,
                    rescale=rescale)
  
          if 'min' in v or 'max' in v:
              kw['update_bounds'] = False
  
          if 'scale' in v:
              kw['rescale'] = False
  
          o[k] = make_parameter_dict(o[k], **kw)
  
      return o
docs: Create a dictionary for the parameters of a function.
  
      Parameters
      ----------
      name : str
          Name of the function.
  
      pars_dict : dict    
          Existing parameter dict that will be merged with the
          default dictionary created by this method.
  
      rescale : bool
          Rescale parameter values.