code: def deprecated_version_of(func, old_name):
      """Indicates that a function is deprecated and has a new name.
  
      `func` is the new function and `old_name` is the name of the deprecated
      function.
  
      Returns
      -------
  
      deprecated_func
        A function that does the same thing as `func`, but with a docstring
        and a printed message on call which say that the function is
        deprecated and that you should use `func` instead.
  
      Examples
      --------
  
      >>> # The badly named method 'to_file' is replaced by 'write_file'
      >>> class Clip:
      >>>    def write_file(self, some args):
      >>>        # blablabla
      >>>
      >>> Clip.to_file = deprecated_version_of(Clip.write_file, 'to_file')
      """
      # Detect new name of func
      new_name = func.__name__
  
      warning = (
          "The function ``%s`` is deprecated and is kept temporarily "
          "for backwards compatibility.\nPlease use the new name, "
          "``%s``, instead."
      ) % (old_name, new_name)
  
      def deprecated_func(*args, **kwargs):
          warnings.warn(
              "MoviePy: " + warning, PendingDeprecationWarning
          )
          return func(*args, **kwargs)
  
      deprecated_func.__doc__ = warning
  
      return deprecated_func
  
file_path: moviepy/moviepy/tools.py
imports: import os
  import subprocess
  import warnings
  import proglog
label_desc: Use image node_id 4 for calling a global function with example usage: deprecated_version_of(func, old_name) and returns: deprecated_func, func