def mytd(expr1, expr2, x):
    subs = {}
    for a in expr1.free_symbols:
        if a != x:
            subs[a] = random_complex_number()
    return expr1.diff(x) == expr2 and verify_derivative_numerically(
        expr1.subs(subs), x)
def mytd(expr1, expr2, x):
    subs = {}
    for a in expr1.free_symbols:
        if a != x:
            subs[a] = random_complex_number()
    return expr1.diff(x) == expr2 and verify_derivative_numerically(expr1.subs(subs), x)