def rewrite_reserved_words(func):
    """
    Given a function whos kwargs need to contain a reserved word such as `in`,
    allow calling that function with the keyword as `in_`, such that function
    kwargs are rewritten to use the reserved word.
    """
    @partial_safe_wraps(func)
    def inner(*args, **kwargs):
        for word in RESERVED_WORDS:
            key = "{0}_".format(word)
            if key in kwargs:
                kwargs[word] = kwargs.pop(key)
        return func(*args, **kwargs)
    return inner
Given a function whos kwargs need to contain a reserved word such as `in`,
    allow calling that function with the keyword as `in_`, such that function
    kwargs are rewritten to use the reserved word.