def native_(s, encoding='latin-1', errors='strict'):
        if isinstance(s, text_type):
            return s.encode(encoding, errors)
        return str(s)
If ``s`` is an instance of ``text_type``, return
dataset/ETHPy150Open saltstack/salt/salt/_compat.py/native_