human
Can you provide a the Python code you requested given the following:
Complete the below
def _limit_max_file_size(f):

    ''''This will limit constraints.MAX_FILE_SIZE for the duration of the
    wrapped function, based on whether MAX_FILE_SIZE exceeds the
    sys.maxsize limit on the system running the tests.
    This allows successful testing on 32 bit systems.'
    '''
assistant
#Here is the Python code you requested.
    @functools.wraps(f)
    def wrapper(*args, **kwargs):
        test_max_file_size = constraints.MAX_FILE_SIZE
        if (constraints.MAX_FILE_SIZE >= sys.maxsize):
            test_max_file_size = ((2 ** 30) + 2)
        with mock.patch.object(constraints, 'MAX_FILE_SIZE', test_max_file_size):
            return f(*args, **kwargs)
    return wrapper