code: def test_parallel_second_order():
      c2o = True
      N = 8192
      problem, param_values = setup_samples(N=N, calc_second_order=c2o)
      Y = Ishigami.evaluate(param_values)
  
      A, B, AB, BA = sobol.separate_output_values(
          Y, D=3, N=N, calc_second_order=c2o
      )
      r = np.random.randint(N, size=(N, 100))
      Z = norm.ppf(0.5 + 0.95 / 2)
      tasks, n_processors = sobol.create_task_list(
          D=3, calc_second_order=c2o, n_processors=None
      )
      Si_list = []
      for t in tasks:
          Si_list.append(sobol.sobol_parallel(Z, A, AB, BA, B, r, t))
      Si = sobol.Si_list_to_dict(
          Si_list,
          D=3,
          num_resamples=100,
          keep_resamples=False,
          calc_second_order=c2o,
      )
  
      assert_allclose(
          Si["S1"], [0.31, 0.44, 0.00], atol=5e-2, rtol=1e-1
      )
      assert_allclose(
          Si["ST"], [0.55, 0.44, 0.24], atol=5e-2, rtol=1e-1
      )
      assert_allclose(
          [Si["S2"][0][1], Si["S2"][0][2], Si["S2"][1][2]],
          [0.00, 0.25, 0.00],
          atol=5e-2,
          rtol=1e-1,
      )
  
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 10 for calling a global function with example usage: test_parallel_second_order() without return types