docstr: Checks if an error is raised if group_membership has a wrong type.
docstr_tok: ["Checks","if","an","error","is","raised","if","group_membership","has","a","wrong","type","."]
code: def test_check_group_membership_error(self):
      """
      Checks if an error is raised if group_membership has a wrong type.
      """
      # Creates a dummy variable
      group_membership = 1.0
  
      with raises(TypeError):
          _check_group_membership(group_membership)
  
      group_membership = None
  
      with raises(ValueError):
          _check_group_membership(group_membership)
  
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 12 for calling the TestGroupSampleGeneration obj's underlying member method code with example usage: obj.test_check_group_membership_error() without return types