def assert_subset(left, right, message="expected %(set_left)r <= %(set_right)r [left has:%(extra)r]", msg=None):
    """Assert that the left set is a subset of the right set."""
    if msg:
        warnings.warn("msg is deprecated", DeprecationWarning)
        message = msg

    set_left = set(left)
    set_right = set(right)
    if not (set_left <= set_right):
        extra = set_left - set_right
        raise AssertionError(message % {
            'left': left,
            'right': right,
            'set_left': set_left,
            'set_right': set_right,
            'extra': extra,
        })
dataset/ETHPy150Open Yelp/Testify/testify/assertions.py/assert_subset/original