def is_subset(smaller, larger):
    """
    checks if a switch event is a subset of a larger one
    :param smaller: a (int, int, frozenset(str))
    :param larger: a (int, int, frozenset(str))
    :return: True if smaller in larger else False
    """
    if smaller[2] != larger[2]:
        return False
    larger_range = range(larger[0], larger[1] + 1)
    if smaller[0] in larger_range and smaller[1] in larger_range:
        return True
    else:
        return False