code: def test_skat_max_iterations_fails_to_converge_in_fewer_than_36_steps():
      mt = hl.utils.range_matrix_table(3, 3)
      mt = mt.annotate_cols(y=hl.literal([1, 0, 1])[mt.col_idx])
      mt = mt.annotate_entries(
          x=hl.literal([[1, 0, 0], [10, 0, 0], [10, 5, 1]])[mt.row_idx]
      )
      try:
          ht = hl.skat(
              hl.literal(0),
              mt.row_idx,
              y=mt.y,
              x=mt.x[mt.col_idx],
              logistic=(36, 1e-10),
              # The logistic settings are only used when fitting the null model, so we need to use a
              # covariate that triggers nonconvergence
              covariates=[mt.y],
          )
          ht.collect()[0]
      except FatalError as err:
          assert (
              "Failed to fit logistic regression null model (MLE with covariates only): Newton iteration failed to converge"
              in err.args[0]
          )
      except HailUserError as err:
          assert (
              "hl._logistic_skat: null model did not converge: {b: null, score: null, fisher: null, mu: null, n_iterations: 36, log_lkhd: -0.6931471805599457, converged: false, exploded: false}"
              in err.args[0]
          )
      else:
          assert False
  
imports: import hail
  import pytest
  from hail.utils import FatalError, HailUserError
  from ..helpers import resource, test_timeout, qobtest
label_desc: Use image node_id 18 for calling a global function with example usage: test_skat_max_iterations_fails_to_converge_in_fewer_than_36_steps() without return types