def run_only_if_pyutmp_is_available(func):
    try:
        import pyutmp
    except ImportError:
        pyutmp = None
    try:
        import utmp
    except __HOLE__:
        utmp = None
    pred = lambda: pyutmp is not None or utmp is not None
    return run_only(func, pred)
dataset/ETHPy150Open BrightcoveOS/Diamond/src/collectors/users/test/testusers.py/run_only_if_pyutmp_is_available