code: def test_fista_multiclass_tv1d(data, request):
      X, y = request.getfixturevalue(data)
      clf = FistaClassifier(
          max_iter=200, penalty="tv1d", multiclass=True
      )
      clf.fit(X, y)
      np.testing.assert_almost_equal(clf.score(X, y), 0.97, 2)
  
      # adding a lot of regularization coef_ should be constant
      clf = FistaClassifier(
          max_iter=200, penalty="tv1d", multiclass=True, alpha=1e6
      )
      clf.fit(X, y)
      for i in range(clf.coef_.shape[0]):
          np.testing.assert_array_almost_equal(
              clf.coef_[i], np.mean(clf.coef_[i]) * np.ones(X.shape[1])
          )
  
imports: import numpy
  import pytest
  from scipy.linalg import svd, diagsvd
  from lightning.classification import FistaClassifier
  from lightning.regression import FistaRegressor
  from lightning.impl.penalty import project_simplex, L1Penalty
label_desc: Use image node_id 6 for calling a global function with example usage: test_fista_multiclass_tv1d(data, request) without return types