def apply_g(func: Callable) -> Callable:

    @wraps(func)
    def with_g(*args, **kwargs):
        return func(*[f'g({a})' for a in args], **kwargs)
    return with_g
def apply_g(func: Callable) -> Callable:

    @wraps(func)
    def with_g(*args, **kwargs):
        return func(*[f'g({a})' for a in args], **kwargs)
    return with_g