def bytes_(s, encoding='utf-8', errors='strict'):
    if isinstance(s, text_type):  # pragma: no cover
        return s.encode(encoding, errors)
    return s
Get reference efficiency, falling back to efficiency if no
dataset/ETHPy150Open abhinavsingh/proxy.py/proxy.py/bytes_--crossover with--dataset/ETHPy150Open calliope-project/calliope/calliope/core.py/Model.get_eff_ref