code: def deprecate_parameter(parameter):
      def wrapper(f):
          @wraps(f)
          def func(*args, **kwargs):
              if parameter in kwargs:
                  warnings.warn(
                      f"The parameter `{parameter}` has been deprecated and will be "
                      f"removed in future versions",
                      category=FutureWarning,
                  )
              return f(*args, **kwargs)
  
          return func
  
      return wrapper
  
file_path: openTSNE/openTSNE/utils.py
imports: from functools import wraps
  from time import time
  import warnings
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: deprecate_parameter(parameter) and returns: wrapper, func, f