code: def _kwargs_to_attributes(self, kwargs):
          
          for key, val in kwargs.iteritems():
              if key not in self.__dict__:
                  raise ValueError(
                      "Can't set %s parameter - it is not defined here!" % key
                  )
  
              self.__dict__[key] = val
docs: Put keys from `kwargs` to `self`, if the keys are already there.