docstr: ...Test LogisticRegression setting of random_state parameter of solver
          
docstr_tok: ["...","Test","LogisticRegression","setting","of","random_state","parameter","of","solver"]
code: def test_LogisticRegression_solver_random_state(self):
      """...Test LogisticRegression setting of random_state parameter of solver"""
      for solver in solvers:
          if solver in ["bfgs", "agd", "gd"]:
              msg = (
                  '^Solver "%s" has no settable random_state$' % solver
              )
              with self.assertWarnsRegex(RuntimeWarning, msg):
                  learner = LogisticRegression(
                      solver=solver,
                      random_state=1,
                      **Test.specific_solver_kwargs(solver),
                  )
                  self.assertIsNone(learner.random_state)
          else:
              learner = LogisticRegression(
                  solver=solver,
                  random_state=self.int_1,
                  **Test.specific_solver_kwargs(solver),
              )
              self.assertEqual(learner.random_state, self.int_1)
              self.assertEqual(learner._solver_obj.seed, self.int_1)
  
              msg = "^random_state must be positive, got -1$"
              with self.assertRaisesRegex(ValueError, msg):
                  LogisticRegression(
                      solver=solver,
                      random_state=-1,
                      **Test.specific_solver_kwargs(solver),
                  )
  
          msg = "^random_state is readonly in LogisticRegression$"
          with self.assertRaisesRegex(AttributeError, msg):
              learner = LogisticRegression(
                  solver=solver, **Test.specific_solver_kwargs(solver)
              )
              learner.random_state = self.int_2
  
imports: import itertools
  import unittest
  import numpy
  from sklearn.metrics import roc_auc_score
  from tick.base.inference import InferenceTest
  from tick.linear_model import SimuLogReg, LogisticRegression
  from tick.simulation import weights_sparse_gauss
  from tick.preprocessing.features_binarizer import FeaturesBinarizer
  from tick.prox import ProxZero, ProxL1, ProxL2Sq, ProxElasticNet, ProxTV, ProxBinarsity
label_desc: Use image node_id 12 for calling the Test obj's underlying member method code with example usage: obj.test_LogisticRegression_solver_random_state() without return types