human
Complete the below
def _sync_lock(f):

    ''''Decorator to block all operations for a global sync call.'
    '''

Give me a the Python code you requested?
assistant
#Here is the Python code you requested.
    @six.wraps(f)
    def wrapped(*args, **kwargs):
        with _SYNC_STATE_LOCK.write_lock():
            return f(*args, **kwargs)
    return wrapped