def is_valid_node(node):
    """Check ``node`` is of type frozenset[int].
    """
    try:
        if not isinstance(node, frozenset):
            return False
        el = next(iter(node))
        if not isinstance(el, int):
            return False
        return True
    except TypeError:
        return False