def utf8(value):
    if isinstance(value, _UTF8_TYPES):
        return value
    assert isinstance(value, unicode_type)
    return value.encode("utf-8")
Converts a string argument to a byte string.
dataset/ETHPy150Open toastdriven/itty/itty.py/utf8