code: def get_basescore(model: xgb.XGBModel) -> float:
      """Get base score from an XGBoost sklearn estimator."""
      base_score = float(
          json.loads(model.get_booster().save_config())["learner"][
              "learner_model_param"
          ]["base_score"]
      )
      return base_score
  
file_path: xgboost/python-package/xgboost/testing/updater.py
imports: import json
  from functools import partial, update_wrapper
  from typing import Any, Dict, List
  import numpy
  import xgboost
  import xgboost.testing
label_desc: Use image node_id 1 for calling a global function with example usage: get_basescore(model) and returns: base_score