def run_only_if_kitchen_is_available(func):
    if sys.version_info < (2, 7):
        try:
            from kitchen.pycompat27 import subprocess
        except __HOLE__:
            subprocess = None
    else:
        import subprocess
    pred = lambda: subprocess is not None
    return run_only(func, pred)
dataset/ETHPy150Open BrightcoveOS/Diamond/src/collectors/userscripts/test/testuserscripts.py/run_only_if_kitchen_is_available