human
Give me a the Python program you requested given the following:
Complete the below
def LocalContext(function):

    ''''Wraps the specified function on a context.local() block, using kwargs.
    Example:
    >>> context.clear()
    >>> @LocalContext
    ... def printArch():
    ...     print(context.arch)
    >>> printArch()
    i386
    >>> printArch(arch=\'arm\')
    arm'
    '''
assistant
#Here is the Python program you requested.
    @functools.wraps(function)
    def setter(*a, **kw):
        if (not kw):
            return function(*a)
        with context.local(**{k: kw.pop(k) for (k, v) in kw.items() if isinstance(getattr(ContextType, k, None), property)}):
            return function(*a, **kw)
    return setter