code: def test_raise_errors_l1_ratio():
      with np.testing.assert_raises(ValueError):
          ElasticNet(l1_ratio=5.0)
  
      with np.testing.assert_raises(NotImplementedError):
          ElasticNet(l1_ratio=0.0)
  
      with np.testing.assert_raises(NotImplementedError):
          X, y = build_dataset(n_samples=30, n_features=50)
          y = np.sign(y)
          celer_path(X, y, "logreg", l1_ratio=0.5)
  
file_path: celer/celer/tests/test_enet.py
imports: from itertools import product
  import pytest
  import numpy
  from numpy.linalg import norm
  from numpy.testing import assert_allclose, assert_array_less, assert_equal
  from sklearn.linear_model import enet_path, ElasticNet, ElasticNetCV
  from celer import Lasso, ElasticNet, celer_path, ElasticNetCV
  from celer.utils.testing import build_dataset
label_desc: Use image node_id 1 for calling a global function with example usage: test_raise_errors_l1_ratio() without return types