def get_environments(nodes):
    envs = set()
    counts = {}
    for node in nodes:
        env = node.get('chef_environment', 'none')
        envs.add(env)
        counts.setdefault(env, 0)
        counts[env] += 1
    return [{'name': env, 'counts': counts[env]} for env in sorted(envs)]
Signals the uncaught exception and invokes the
dataset/ETHPy150Open edelight/kitchen/kitchen/backends/lchef.py/get_environments--crossover with--dataset/ETHPy150Open skibblenybbles/django-daydreamer/daydreamer/core/handlers/base.py/Handler.handle_uncaught_exception