code: def test_early_stopping_callback_rejects_invalid_stopping_rounds_with_informative_errors():
      with pytest.raises(
          ValueError,
          match="stopping_rounds should be an integer and greater than 0. got: 0",
      ):
          lgb.early_stopping(stopping_rounds=0)
  
      with pytest.raises(
          ValueError,
          match="stopping_rounds should be an integer and greater than 0. got: -1",
      ):
          lgb.early_stopping(stopping_rounds=-1)
  
      with pytest.raises(
          ValueError,
          match="stopping_rounds should be an integer and greater than 0. got: neverrrr",
      ):
          lgb.early_stopping(stopping_rounds="neverrrr")
  
file_path: LightGBM/tests/python_package_test/test_callback.py
imports: import pytest
  import lightgbm
  from .utils import SERIALIZERS, pickle_and_unpickle_object
label_desc: Use image node_id 3 for calling a global function with example usage: test_early_stopping_callback_rejects_invalid_stopping_rounds_with_informative_errors() without return types