code: def test_bayesian_ridge_scores():
      """Check scores attribute shape"""
      X, y = diabetes.data, diabetes.target
  
      clf = BayesianRidge(compute_score=True)
      clf.fit(X, y)
  
      assert clf.scores_.shape == (clf.n_iter_ + 1,)
  
imports: from math import log
  import numpy
  import pytest
  from sklearn import datasets
  from sklearn.linear_model import ARDRegression, BayesianRidge, Ridge
  from sklearn.utils import check_random_state
  from sklearn.utils._testing import assert_almost_equal, assert_array_almost_equal, assert_array_less
  from sklearn.utils.extmath import fast_logdet
label_desc: Use image node_id 1 for calling a global function with example usage: test_bayesian_ridge_scores() without return types