def METHOD_NAME(self, hyperparameters: Dict[str, Any]):
    if self.rank_zero_only and dist.get_global_rank() != 0:
        return
    # Lazy logging of hyperparameters b/c Tensorboard requires a metric to pair
    # with hyperparameters.
    formatted_hparams = {
        hparam_name: format_log_data_value(hparam_value) for hparam_name, hparam_value in hyperparameters.items()
    }
    self.hyperparameters.update(formatted_hparams)