code: def test_check_enforce_min_instances():
      """Test minimum instances enforced in check_X."""
      X, y = make_classification_problem(n_instances=3)
      msg = r"instance"
      with pytest.raises(ValueError, match=msg):
          check_X(X, enforce_min_instances=4)
  
      with pytest.raises(ValueError, match=msg):
          check_X_y(X, y, enforce_min_instances=4)
  
      with pytest.raises(ValueError, match=msg):
          check_y(y, enforce_min_instances=4)
  
file_path: sktime/sktime/utils/validation/tests/test_panel.py
imports: import numpy
  import pandas
  import pytest
  from sktime.utils._testing.panel import make_classification_problem
  from sktime.utils.validation.panel import check_X, check_X_y, check_y
label_desc: Use image node_id 2 for calling a global function with example usage: test_check_enforce_min_instances() without return types