code: def test_incorrect_second_order_setting():
      # note this will still be a problem if N(2D+2) also divides by (D+2)
      problem, param_values = setup_samples(
          N=511, calc_second_order=False
      )
      Y = Ishigami.evaluate(param_values)
      with raises(RuntimeError):
          sobol.analyze(problem, Y, calc_second_order=True)
  
imports: from pytest import raises, mark
  from numpy.testing import assert_equal, assert_allclose
  import numpy
  from scipy.stats import norm
  from SALib.analyze import sobol
  from SALib.sample.sobol import sample
  from SALib.sample import sobol_sequence
  from SALib.test_functions import Ishigami, Sobol_G
  from SALib.util import read_param_file
label_desc: Use image node_id 7 for calling a global function with example usage: test_incorrect_second_order_setting() without return types