def bytes_(s, encoding='utf-8', errors='strict'):
    if isinstance(s, text_type):  # pragma: no cover
        return s.encode(encoding, errors)
    return s
If ``s`` is an instance of ``text_type``, return
dataset/ETHPy150Open abhinavsingh/proxy.py/proxy.py/bytes_