code: def decorated_dummy(dec, name):
      """Return a dummy function decorated with dec, with the given name.
  
      Examples
      --------
      import IPython.testing.decorators as dec
      setup = dec.decorated_dummy(dec.skip_if_no_x11, __name__)
      """
      warnings.warn(
          "The function `decorated_dummy` is deprecated since IPython 4.0",
          DeprecationWarning,
          stacklevel=2,
      )
      dummy = lambda: None
      dummy.__name__ = name
      return dec(dummy)
  
file_path: catboost/contrib/python/ipython/py2/IPython/testing/decorators.py
imports: import sys
  import os
  import tempfile
  import unittest
  import warnings
  from decorator import decorator
  from .ipunittest import ipdoctest, ipdocstring
  from IPython.external.decorators import *
  from IPython.utils.py3compat import string_types, which, PY2, PY3, PYPY
label_desc: Use image node_id 8 for calling a global function with example usage: decorated_dummy(dec, name) and returns: dec