code: def deprecated(*, alternative: Optional[str] = None):
      def deco(func):
          @wraps(func)
          def inner(*args, **kwargs):
              additional_info = (
                  f", use `{alternative}` instead"
                  if alternative
                  else " and will be removed"
              )
  
              warn_once(
                  message=f"`{func.__name__}` is deprecated{additional_info}."
                  f" We'll end support of it in next major release."
              )
  
              return func(*args, **kwargs)
  
          return inner
  
      return deco
  
imports: from functools import wraps
  from typing import Optional
  from neptune.common.warnings import warn_once
  from neptune.exceptions import NeptuneParametersCollision
label_desc: Use image node_id 1 for calling a global function with example usage: deprecated() and returns: deco, inner, func