code: def test_update_of_sigma_in_ard():
      # Checks that `sigma_` is updated correctly after the last iteration
      # of the ARDRegression algorithm. See issue #10128.
      X = np.array([[1, 0], [0, 0]])
      y = np.array([0, 0])
      clf = ARDRegression(max_iter=1)
      clf.fit(X, y)
      # With the inputs above, ARDRegression prunes both of the two coefficients
      # in the first iteration. Hence, the expected shape of `sigma_` is (0, 0).
      assert clf.sigma_.shape == (0, 0)
      # Ensure that no error is thrown at prediction stage
      clf.predict(X, return_std=True)
  
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 9 for calling a global function with example usage: test_update_of_sigma_in_ard() without return types