def py_fn_to_vim_command(command_name, py_fn, allow_range=False):
    global WRAP_INDEX
    args = ""
    if allow_range:
        args += "-range"

    wrap_proxy[WRAP_INDEX] = py_fn
    vim.command((args, command_name, WRAP_INDEX) % "command! %s %s :py venom.wrap_proxy[%d]()")
    WRAP_INDEX += 1
dataset/ETHPy150Open nielsmadan/venom/autoload/venom.py/py_fn_to_vim_command/swapped operands of `%`