def run_only_if_gearman_is_available(func):
    try:
        import gearman
    except __HOLE__:
        gearman = None
    pred = lambda: gearman is not None
    return run_only(func, pred)
dataset/ETHPy150Open Yelp/fullerite/src/diamond/collectors/gearman_stats/test/testgearmanstats.py/run_only_if_gearman_is_available