def update_config(self, *args, **kwargs) -> None:
        """
        Updates the `model_kwargs` and `trainer_kwargs` dictionaries with the keyword.add()

        Provides a warning if the keyword argument is not valid for the trainer or model.
        """

        def get_all_keys(d):
            keys = []
            for k, v in d.items():
                keys.append(k)
                if isinstance(v, dict):
                    keys += get_all_keys(v)
            return keys

        trainer_kwargs = self._trainer.get_trainer_kwargs()
        model_kwargs = self._trainer.get_model_kwargs()

        all_keys = get_all_keys({**trainer_kwargs, **model_kwargs})

        for kwarg in kwargs:
            if kwarg not in all_keys:
                warnings.warn(
                    f"'{kwarg}' is not a valid default argument for '{self._trainer.__class__.__name__}'. "
                    f"Valid default arguments are: {all_keys}. ",
                    UserWarning,
                    stacklevel=2,
                )
        return super().update_config(*args, **kwargs)

        Updates the `model_kwargs` and `trainer_kwargs` dictionaries with the keyword.add()

        Provides a warning if the keyword argument is not valid for the trainer or model.
        
argilla-v1/src/argilla_v1/client/feedback/training/base.py