def run_only_if_beanstalkc_is_available(func):
    try:
        import beanstalkc
    except __HOLE__:
        beanstalkc = None
    pred = lambda: beanstalkc is not None
    return run_only(func, pred)
dataset/ETHPy150Open BrightcoveOS/Diamond/src/collectors/beanstalkd/test/testbeanstalkd.py/run_only_if_beanstalkc_is_available