def expect(self, name: str, *, expected: str) -> Token:
        """Expect a certain token name next, failing with a syntax error otherwise.

        The token is *not* read.
        """
        if not self.check(name):
            raise self.raise_syntax_error(f"Expected {expected}")
        return self.read()
Expect a certain token name next, failing with a syntax error otherwise.

        The token is *not* read.
        
Solutions/CyberArkAudit/Data Connectors/.python_packages/lib/site-packages/packaging/_tokenizer.py