@pytest.mark.parametrize('func, expected', [(inconsistent_input_size, "Inputs of 'identity' function expected \\[\\'input1\\'\\], but got \\[\\'A\\', \\'B\\'\\]"), (inconsistent_input_args, "Inputs of 'dummy_func_args' function expected \\[\\'args\\'\\], but got {\\'a\\': \\'A\\'}"), (inconsistent_input_kwargs, "Inputs of 'dummy_func_args' function expected \\[\\'kwargs\\'\\], but got A"), (lambda_inconsistent_input_size, "Inputs of '<lambda>' function expected \\[\\'input1\\'\\], but got \\[\\'A\\', \\'B\\'\\]"), (partial_inconsistent_input_size, "Inputs of '<partial>' function expected \\[\\'input1\\'\\], but got \\[\\'A\\', \\'B\\'\\]")])
def test_bad_input(func, expected):
    with pytest.raises(TypeError, match=expected):
        node(*func())
@pytest.mark.parametrize('func, expected', [(inconsistent_input_size, "Inputs of 'identity' function expected \\[\\'input1\\'\\], but got \\[\\'A\\', \\'B\\'\\]"), (inconsistent_input_args, "Inputs of 'dummy_func_args' function expected \\[\\'args\\'\\], but got {\\'a\\': \\'A\\'}"), (inconsistent_input_kwargs, "Inputs of 'dummy_func_args' function expected \\[\\'kwargs\\'\\], but got A"), (lambda_inconsistent_input_size, "Inputs of '<lambda>' function expected \\[\\'input1\\'\\], but got \\[\\'A\\', \\'B\\'\\]"), (partial_inconsistent_input_size, "Inputs of '<partial>' function expected \\[\\'input1\\'\\], but got \\[\\'A\\', \\'B\\'\\]")])
def test_bad_input(func, expected):
    with pytest.raises(TypeError, match=expected):
        node(*func())