code: def test_modified_Sobol_G_error_if_value_beyond_range():
      parameter_values = np.zeros((1, 8))
      delta_values = np.array([-0.5, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 1.8])
  
      expected_err = "Sobol G function called with delta values less than zero or greater than one"
      with raises(ValueError, match=expected_err):
          evaluate(parameter_values, delta=delta_values)
  
      alpha_values = np.array([0, -0.2, -0.3, 0.4, 0.5, 0.6, 0.7, 0.8])
      expected_err = "Sobol G function called with alpha values less than or equal to zero"
      with raises(ValueError, 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 12 for calling a global function with example usage: test_modified_Sobol_G_error_if_value_beyond_range() without return types