code: def test_group_sample_fails_with_wrong_G_matrix():
      N = 6
      num_levels = 4
  
      problem = {
          "bounds": [[0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0]],
          "num_vars": 4,
          "groups": list([1, 2, 3]),
      }
  
      with raises(ValueError) as err:
          sample(problem, N, num_levels)
  
      assert (
          "Number of entries in 'groups' should be the same as in "
          "'names'" in str(err.value)
      )
  
imports: from numpy.testing import assert_equal, assert_allclose
  from pytest import raises, fixture, warns, mark
  import numpy
  import warnings
  from SALib.sample.morris.morris import sample, _check_group_membership, _check_if_num_levels_is_even, _compute_optimised_trajectories, _generate_p_star, _compute_b_star, _generate_trajectory, _generate_x_star
  from SALib.util import read_param_file, compute_groups_matrix, _define_problem_with_groups, _compute_delta
label_desc: Use image node_id 11 for calling a global function with example usage: test_group_sample_fails_with_wrong_G_matrix() without return types