code: def onlyif_any_cmd_exists(*commands):
      """
      Decorator to skip test unless at least one of `commands` is found.
      """
      warnings.warn(
          "The function `onlyif_any_cmd_exists` is deprecated since IPython 4.0",
          DeprecationWarning,
          stacklevel=2,
      )
      for cmd in commands:
          if which(cmd):
              return null_deco
      return skip(
          "This test runs only if one of the commands {0} "
          "is installed".format(commands)
      )
  
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 11 for calling a global function with example usage: onlyif_any_cmd_exists() and returns: skip, null_deco