def contains(self, item, prereleases=None):
        # type: (str, Optional[bool]) -> bool
        """
        Determines if the given item is contained within this specifier.
        """

        Determines if the given item is contained within this specifier.
        
product/gradle-plugin/src/main/python/pip/_vendor/packaging/specifiers.py