code: def test_deprecated_version_of(old_name):
      def to_file(*args, **kwargs):
          return
  
      func = tools.deprecated_version_of(to_file, old_name)
  
      expected_warning_message = (
          f"MoviePy: The function ``{old_name}`` is deprecated and is kept"
          " temporarily for backwards compatibility.\nPlease use the new name"
          f", ``{to_file.__name__}``, instead."
      )
  
      with pytest.warns(PendingDeprecationWarning) as record:
          func(1, b=2)
  
      assert len(record) == 1
      assert record[0].message.args[0] == expected_warning_message
  
file_path: moviepy/tests/test_tools.py
imports: import contextlib
  import filecmp
  import importlib
  import io
  import os
  import shutil
  import sys
  import pytest
  import moviepy.tools
  from moviepy.video.io.downloader import download_webfile
label_desc: Use image node_id 6 for calling a global function with example usage: test_deprecated_version_of(old_name) without return types