code: def test_check_solver(setup):
      all_solvers = ["SGD"]
      for solver in all_solvers:
          checked_solver = _check_solver(solver)
          assert checked_solver == solver
  
      invalid_solver = "Newton"
      error_msg = re.escape(
          "Logistic Regression supports only solvers in %s, "
          "got %s." % (all_solvers, invalid_solver)
      )
  
      with pytest.raises(ValueError, match=error_msg):
          _check_solver(invalid_solver)
  
file_path: mars/mars/learn/glm/tests/test_logistic.py
imports: import re
  import pytest
  from sklearn.datasets import load_iris
  from .._logistic import _check_solver, _check_multi_class, LogisticRegression
label_desc: Use image node_id 1 for calling a global function with example usage: test_check_solver(setup) without return types