code: def test_dim_mismatch():
      problem = {
          "num_vars": 2,
          "names": ["x1", "x2"],
          "bounds": [[0, 1] * 2],
      }
      X = latin.sample(problem, 10000)
      Y = linear_model_1.evaluate(X)
      with raises(RuntimeError):
          hdmr.analyze(problem, X, Y[:-2])
  
file_path: SALib/tests/test_hdmr.py
imports: from __future__ import division
  from pytest import raises
  from SALib.analyze import hdmr
  from SALib.sample import latin
  from SALib.test_functions import Ishigami, linear_model_1
  from SALib.util import read_param_file
label_desc: Use image node_id 9 for calling a global function with example usage: test_dim_mismatch() without return types