class_docstr: Enum class that calls `deprecate` method whenever a member is accessed.
class_docstr_tok: ["Enum","class","that","calls","`","deprecate","`","method","whenever","a","member","is","accessed","."]
code: def deprecate(self):
      help_message = (
          f" {self.help_message}" if self.help_message else ""
      )
      warnings.warn(
          f"'{self.__objclass__.__name__}' is deprecated and will be removed in the next major version of datasets."
          + help_message,
          FutureWarning,
          stacklevel=3,
      )
  
file_path: datasets/src/datasets/utils/deprecation_utils.py
imports: import enum
  import inspect
  import warnings
  from functools import wraps
  from typing import Callable, Optional
  from .logging import get_logger
label_desc: Use image node_id 3 for calling the DeprecatedEnum obj's underlying member method code with example usage: obj.deprecate() without return types