code: def test_invalid_max_iter(self, invalid_positive_int):
      msg = (
          "The 'max_iter' parameter of CoxnetSurvivalAnalysis must be an int "
          r"in the range \[1, inf\)\. "
          f"Got {invalid_positive_int} instead\\."
      )
  
      with pytest.raises(ValueError, match=msg):
          self._fit(
              alpha_min_ratio=0.0001, max_iter=invalid_positive_int
          )
  
imports: from dataclasses import dataclass
  from os.path import dirname, join
  from typing import Optional
  import numpy
  from numpy.testing import assert_array_almost_equal
  import pandas
  import pytest
  from sklearn.exceptions import ConvergenceWarning
  from sklearn.pipeline import make_pipeline
  from sksurv.datasets import get_x_y, load_breast_cancer
  from sksurv.linear_model.coxnet import CoxnetSurvivalAnalysis
  from sksurv.preprocessing import OneHotEncoder
  from sksurv.testing import FixtureParameterFactory
  from sksurv.util import Surv
label_desc: Use image node_id 10 for calling the TestCoxnetSurvivalAnalysis obj's underlying member method code with example usage: obj.test_invalid_max_iter(invalid_positive_int) without return types