def get_num_round(hyperparameters) -> int:
    """ num_round getter

    Get the value of num_round that will be used to train the xgboost model

    :param hyperparameters: A dictionary that contains the hyperparameters which the selected training method
            needs to train the model.
    :return:
            - num_round: The number of rounds for boosting
    """

    try:
        num_round = hyperparameters["num_round"]
    except Exception as e:
        print(f"The num_round is not defined. The default value is num_round = 10. Error: {e}")
        num_round = 10
    return num_round