def b(s):
        if isinstance(s, str):
            return s.encode('utf-8')
        elif isinstance(s, bytes):
            return s
        else:
            raise TypeError("Invalid argument %r for b()" % (s,))
dataset/ETHPy150Open Kami/python-yubico-client/yubico_client/py3.py/b/original