def assert_sympy_expressions_equal(expr1, expr2):
    """
    Raises `AssertionError` if `expr1` is not equal to `expr2`.

    :param expr1: first expression
    :param expr2: second expression
    :return: None
    """
    if not sympy_expressions_equal(expr1, expr2):
        raise AssertionError("{0!r} != {1!r}".format(expr1, expr2))
Raises `AssertionError` if `expr1` is not equal to `expr2`.

    :param expr1: first expression
    :param expr2: second expression
    :return: None