def log_hparams(self, params: dict[str, Any]) -> None:
        """Record hparams and save into files."""
        self.hparams.update(params)
        hparams_file = os.path.join(self.log_dir, self.NAME_HPARAMS_FILE)
        save_hparams_to_yaml(hparams_file, self.hparams)
Record hparams and save into files.
src/lightning/pytorch/loggers/csv_logs.py