def METHOD_NAME(val, true_val):
    ok: bool = True
    if isinstance(val, list):
        for v, t in zip(val, true_val):
            ok &= TestQMPC.METHOD_NAME(v, t)
    elif isinstance(val, dict):
        for v, t in zip(val.values(), true_val.values()):
            ok &= TestQMPC.METHOD_NAME(v, t)
    else:
        ok &= math.METHOD_NAME(val, true_val)
    return ok