sample: Update xgboost_sample.py to make it compatible in both v1 and v2. (#5698)
sample: Update xgboost_sample.py to make it compatible in both v1 and v2. (#5698)


kubeflow/pipelines,kubeflow/pipelines,kubeflow/pipelines,kubeflow/pipelines,kubeflow/pipelines,kubeflow/pipelines