Artifact load does not get metadata

Hi!!

I am using wandb XGBoost integration. The model is saved as an artifact by the integration. When I visualize the artifact in the web interface, the metadata of the run is in the “Metadata” tab of the artifact data, as shown in the uploaded image.

I now load the model with the suggested code:

run = wandb.init(project=PROJECT_NAME)
artifact = run.use_artifact(params['wandb_model'], type='model')
artifact.wait()
artifact_dir = artifact.download()

I want to access the metadata with artifact.metadata but it comes empty. Is there any way to retreive that metadata information?

Thanks and kind regards,

David