code: def early_stopping_deprecation_warning(
      early_stopping_no_improvement, early_stopping_acc
  ):
      if early_stopping_no_improvement != 5:
          warnings.warn(
              "early_stopping_no_improvement is deprecated since 1.1.0 "
              'and will be removed in 2.0.0. Please use the "early_stopping" kwarg in fit () '
              "instead.",
              DeprecationWarning,
              stacklevel=2,
          )
      if early_stopping_acc != -1:
          warnings.warn(
              "early_stopping_acc  is deprecated since 1.1.0 "
              'and will be removed in 2.0.0. Please use the "early_stopping" kwarg in fit () '
              "instead.",
              DeprecationWarning,
              stacklevel=2,
          )
  
file_path: small-text/small_text/utils/annotations.py
imports: import inspect
  import warnings
  from functools import wraps
  from packaging import version
  from small_text.version import get_version
label_desc: Use image node_id 3 for calling a global function with example usage: early_stopping_deprecation_warning(early_stopping_no_improvement, early_stopping_acc) without return types