code: def onlyif(condition, msg):
      """The reverse from skipif, see skipif for details."""
  
      if callable(condition):
          skip_condition = lambda: not condition()
      else:
          skip_condition = lambda: not condition
  
      return skipif(skip_condition, msg)
  
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 6 for calling a global function with example usage: onlyif(condition, msg) and returns: skipif