def __contains__(self, item):
        """Verify if the item is contained in the groups.

        A string is taken in and parsed to see if it could possibly
        refer to a file contained in one of the groups. Various checks
        are run, and the result is returned via the "X in Y" syntax."""
        if item is None or item.count('.') > 1:
            return False
        if '.' in item:
            group, file = item.split('.', 1)
        else:
            group, file = None, item
        if group is None:
            group = self.__option
        else:
            try:
                group = self.__groups[int(group)]
            except (ValueError, IndexError):
                return False
        try:
            return 0 <= int(file) < len(group)
        except ValueError:
            return False
Verify if the item is contained in the groups.

        A string is taken in and parsed to see if it could possibly
        refer to a file contained in one of the groups. Various checks
        are run, and the result is returned via the "X in Y" syntax.
recipes/Python/577049_Bible_Verse_Quiz__librarypy/recipe-577049.py