code: def test_3d_input(X, err_msg):
      """Test input data validation."""
      with pytest.raises(ValueError, match=re.escape(err_msg)):
          check_3d_array(X)
  
imports: import numpy
  import pytest
  import re
  from pyts.multivariate.utils import check_3d_array
label_desc: Use image node_id 1 for calling a global function with example usage: test_3d_input(X, err_msg) without return types