code: def deprecated(remove_version, old, new=None, extra=None):
      import holoviews as hv
  
      current_version = Version(Version(hv.__version__).base_version)
  
      if isinstance(remove_version, str):
          remove_version = Version(remove_version)
  
      if remove_version <= current_version:
          # This error is mainly for developers to remove the deprecated.
          raise ValueError(
              f"{old!r} should have been removed in {remove_version}, current version {current_version}."
          )
  
      message = f"{old!r} is deprecated and will be removed in version {remove_version}."
  
      if new:
          message = f"{message[:-1]}, use {new!r} instead."
  
      if extra:
          message += " " + extra.strip()
  
      warn(message, HoloviewsDeprecationWarning)
  
file_path: holoviews/holoviews/util/warnings.py
imports: import inspect
  import os
  import warnings
  import param
  from packaging.version import Version
label_desc: Use image node_id 3 for calling a global function with example usage: deprecated(remove_version, old, new, extra) without return types