def jobconf_from_env(variable, default=None):
    # try variable verbatim first
    name = variable.replace('.', '_')
    if name in os.environ:
        return os.environ[name]

    # try alternatives (arbitrary order)
    for var in _JOBCONF_MAP.get(variable, {}).values():
        name = var.replace('.', '_')
        if name in os.environ:
            return os.environ[name]

    return default
event.event_type
dataset/ETHPy150Open Yelp/mrjob/mrjob/compat.py/jobconf_from_env--crossover with--dataset/ETHPy150Open Kickflip/python-kickflip/kickflip/kickflip.py/SegmentHandler.process