def _is_flag_group(obj):
    """Returns `True` if `obj` is an `h5py.Group` that looks like
    if contains a flag
    """
    import h5py
    return isinstance(obj, h5py.Group) and isinstance(obj.get('active'),
        h5py.Dataset) and isinstance(obj.get('known'), h5py.Dataset)
