code: def test_parameter_check_warping_envelope(X, region, err_msg):
      """Test '_warping_envelope' parameter validation.."""
      with pytest.raises(ValueError, match=err_msg):
          _warping_envelope(X, region)
  
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 6 for calling a global function with example usage: test_parameter_check_warping_envelope(X, region, err_msg) without return types