code: def test_x_none_gram_none_raises_value_error():
      # Test that lars_path with no X and Gram raises exception
      Xy = np.dot(X.T, y)
      with pytest.raises(
          ValueError, match="X and Gram cannot both be unspecified"
      ):
          linear_model.lars_path(None, y, Gram=None, Xy=Xy)
  
imports: import warnings
  import numpy
  import pytest
  from scipy import linalg
  from sklearn import datasets, linear_model
  from sklearn.base import clone
  from sklearn.exceptions import ConvergenceWarning
  from sklearn.linear_model import Lars, LarsCV, LassoLars, LassoLarsCV, LassoLarsIC, lars_path
  from sklearn.linear_model._least_angle import _lars_path_residues
  from sklearn.model_selection import train_test_split
  from sklearn.pipeline import make_pipeline
  from sklearn.preprocessing import StandardScaler
  from sklearn.utils._testing import TempMemmap, assert_allclose, assert_array_almost_equal, ignore_warnings
label_desc: Use image node_id 5 for calling a global function with example usage: test_x_none_gram_none_raises_value_error() without return types