human
Complete this python program:
def _wait_if_syncing(f):
assistant
#Here is the Python program you requested.

    """Decorator to wait if any sync operations are in progress.
    """
    @six.wraps(f)
    def wrapped(*args, **kwargs):
        with _SYNC_STATE_LOCK.read_lock():
            return f(*args, **kwargs)
    return wrapped