code: def deprecated_parameter(
      *, deprecated_kwarg_name, required_kwarg_name
  ):
      def deco(f):
          @wraps(f)
          def inner(*args, **kwargs):
              if deprecated_kwarg_name in kwargs:
                  if required_kwarg_name in kwargs:
                      raise NeptuneParametersCollision(
                          required_kwarg_name,
                          deprecated_kwarg_name,
                          method_name=f.__name__,
                      )
  
                  warn_once(
                      message=f"Parameter `{deprecated_kwarg_name}` is deprecated, use `{required_kwarg_name}` instead."
                      " We'll end support of it in next major release."
                  )
  
                  kwargs[required_kwarg_name] = kwargs[
                      deprecated_kwarg_name
                  ]
                  del kwargs[deprecated_kwarg_name]
  
              return f(*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 2 for calling a global function with example usage: deprecated_parameter() and returns: deco, inner, f