human
Complete the below
def check_c_int(context, builder, n):

    ''''Check whether *n* fits in a C `int`.'
    '''
 ... Can you provide a the Python code you requested?
assistant
#Here is the Python code you requested.
    _maxint = ((2 ** 31) - 1)
    def impl(n):
        if (n > _maxint):
            raise OverflowError('array    size    too    large    to    fit    in    C    int')
    context.compile_internal(builder, impl, signature(types.none, types.intp), (n,))