def assert_sets_equal(
        left,
        right,
        message="expected %(left)r == %(right)r [left has:%(extra_left)r, right has:%(extra_right)r]",
        msg=None,
):
    """Assert that two sets are equal."""
    if msg:
        warnings.warn("msg is deprecated", DeprecationWarning)
        message = msg

    if left != right:
        extra_left = left - right
        extra_right = right - left
        raise AssertionError(message % {
            'left': left,
            'right': right,
            'extra_left': extra_left,
            'extra_right': extra_right,
        })
dataset/ETHPy150Open Yelp/Testify/testify/assertions.py/assert_sets_equal/original