docstr: ...SolverTest set_model of saga, should only accept childs of
  ModelGeneralizedLinear
docstr_tok: ["...","SolverTest","set_model","of","saga",",","should","only","accept","childs","of","ModelGeneralizedLinear"]
code: def test_set_model(self):
      """...SolverTest set_model of saga, should only accept childs of
      ModelGeneralizedLinear"""
      # We try to pass a ModelCoxRegPartialLik which is not a generalized
      # linear model to SAGA to check that the error is raised
      msg = "^SAGA accepts only childs of `ModelGeneralizedLinear`$"
      with self.assertRaisesRegex(ValueError, msg):
          w = weights_sparse_gauss(n_weights=2, nnz=0, dtype=self.dtype)
          X, T, C = SimuCoxReg(
              w, dtype=self.dtype, verbose=False
          ).simulate()
          model = ModelCoxRegPartialLik().fit(X, T, C)
          SAGA().set_model(model)
  
imports: import unittest
  import numpy
  from scipy import sparse
  from tick.prox import ProxElasticNet
  from tick.solver import SAGA
  from tick.solver.tests import TestSolver
  from tick.solver.build.solver import SAGADouble
  from tick.linear_model import ModelLogReg, SimuLogReg
  from tick.survival import SimuCoxReg, ModelCoxRegPartialLik
  from tick.simulation import weights_sparse_gauss
label_desc: Use image node_id 3 for calling the SAGATest obj's underlying member method code with example usage: obj.test_set_model() without return types