<s> from shaker . engine . aggregators import base <EOL> from shaker . engine . aggregators import traffic <EOL> AGGREGATORS = { <EOL> '<STR_LIT>' : traffic . TrafficAggregator , <EOL> '<STR_LIT>' : traffic . TrafficAggregator , <EOL> '<STR_LIT>' : traffic . TrafficAggregator , <EOL> '<STR_LIT>' : base . BaseAggregator , <EOL> } <EOL> def get_aggregator ( test_definition ) : <EOL> executor_class = test_definition [ '<STR_LIT:class>' ] <EOL> klazz = AGGREGATORS . get ( executor_class , AGGREGATORS [ '<STR_LIT>' ] ) <EOL> return klazz ( test_definition ) </s>
