def Dial(proto, *args):

    try:
        dial_func = DIAL_HANDLERS[proto]
    except KeyError:
        raise ValueError("type should be tcp, udp or unix")
    return dial_func(*args)
Test monitoring_batch_size.
dataset/ETHPy150Open benoitc/flower/flower/net/__init__.py/Dial--crossover with--dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/training_algorithms/tests/test_monitoring_batch_size.py/test_monitoring_batch_size