def run_only_if_psutil_is_available(func):
    try:
        import psutil
    except __HOLE__:
        psutil = None
    return run_only(func, lambda: psutil is not None)
dataset/ETHPy150Open BrightcoveOS/Diamond/src/collectors/processresources/test/testprocessresources.py/run_only_if_psutil_is_available