code: def test_modified_Sobol_G_error_if_type_wrong():
      parameter_values = np.zeros((1, 8))
      delta_values = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]
      expected_err = (
          "The argument `delta` must be given as a numpy ndarray"
      )
      with raises(TypeError, match=expected_err):
          evaluate(parameter_values, delta=delta_values)
  
      alpha_values = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]
      expected_err = (
          "The argument `alpha` must be given as a numpy ndarray"
      )
      with raises(TypeError, match=expected_err):
          evaluate(parameter_values, alpha=alpha_values)
  
file_path: SALib/tests/test_test_functions.py
imports: from pytest import raises
  from numpy.testing import assert_allclose
  import numpy
  from SALib.test_functions.Sobol_G import evaluate, _total_variance, _partial_first_order_variance, sensitivity_index, total_sensitivity_index
  from SALib import ProblemSpec
label_desc: Use image node_id 11 for calling a global function with example usage: test_modified_Sobol_G_error_if_type_wrong() without return types