from.coreimport*from.codecimport*fromtypingimportAny,UniondefToASCII(label:str)->bytes:returnencode(label)defToUnicode(label:Union[bytes, bytearray])->str:returndecode(label)defnameprep(s:Any)->None:raiseNotImplementedError('IDNA 2008 does not utilise nameprep protocol')