human
Complete the below
def map_arg(**maps):

    ''''Apply a mapping on certains argument before calling the original function.
    Args:
    maps (dict): {key: map_func}'
    '''
assistant
#Here is the Python program you requested.
    def deco(func):
        @functools.wraps(func)
        def wrapper(*args, **kwargs):
            argmap = inspect.getcallargs(func, *args, **kwargs)
            for (k, map_func) in six.iteritems(maps):
                if (k in argmap):
                    argmap[k] = map_func(argmap[k])
            return func(**argmap)
        return wrapper
    return deco