def METHOD_NAME(self, source_dict):
    """
    Update the parameters using values from a dictionary.
    :param source_dict: A dictionary with an entry for each parameter to
        update.
    """
    for key, value in source_dict.items():
        if not hasattr(self, key):
            raise ValueError("Unknown key {} in {} object".format(key, type(self).__name__))
        setattr(self, key, value)