def f(sample): res1 = char_fun(sample, {child: 1}) return res1
def g(sample): res2 = char_fun(sample, parent_dict) return res2
def f(sample): res1 = char_fun(sample, {node: 0}) return res1
def f(sample): res1 = char_fun(sample, {node: 0}) res2 = char_fun(sample, parent_dict) return res1 * res2
def f(sample): return char_fun(sample, state_vec)