code: def test_deprecated_alias():
      """Test deprecated_alias."""
  
      def new_func():
          """Do something."""
          pass
  
      deprecated_alias("old_func", new_func)
      assert old_func  # noqa
      assert (
          "has been deprecated in favor of new_func" in old_func.__doc__
      )  # noqa
      assert "deprecated" not in new_func.__doc__
  
imports: import webbrowser
  import pytest
  from mne import grade_to_tris, open_docs
  from mne.utils import catch_logging, copy_doc, copy_function_doc_to_method_doc, deprecated, deprecated_alias, legacy, linkcode_resolve
label_desc: Use image node_id 2 for calling a global function with example usage: test_deprecated_alias() without return types