def jobconf_from_dict(jobconf, name, default=None):
    if name in jobconf:
        return jobconf[name]

    # try alternatives (arbitrary order)
    for alternative in _JOBCONF_MAP.get(name, {}).values():
        if alternative in jobconf:
            return jobconf[alternative]

    return default
toBytes(u"URL") --> 'URL'.
dataset/ETHPy150Open Yelp/mrjob/mrjob/compat.py/jobconf_from_dict--crossover with--dataset/ETHPy150Open ofermend/medicare-demo/socialite/jython/Lib/urllib.py/toBytes