code: def test_check_consistent_lengths(X, Y, err_msg):
      """Test 'lower_bound_yi' parameter validation."""
      with pytest.raises(ValueError, match=re.escape(err_msg)):
          lower_bound_yi(X, Y)
  
imports: import numpy
  import pytest
  import re
  from math import sqrt
  from pyts.metrics.lower_bounds import _lower_bound_yi_x_y, _lower_bound_yi_X_Y, _warping_envelope, _clip
  from pyts.metrics import lower_bound_improved, lower_bound_keogh, lower_bound_kim, lower_bound_yi
  from pyts.metrics import dtw, sakoe_chiba_band
  from pyts.metrics.dtw import _dtw_sakoechiba
  from sklearn.metrics import pairwise_distances
label_desc: Use image node_id 1 for calling a global function with example usage: test_check_consistent_lengths(X, Y, err_msg) without return types