def get_meters_by_name(name):
    if (name not in meters_by_name):
        raise KeyError('Meter {} not found. Meters available: {}'.format(repr(name), ', '.join(map(repr, meters_by_name.keys()))))
    return meters_by_name[name]()
def get_meters_by_name(name):
    if (name not in meters_by_name):
        raise KeyError('Meter {} not found. Meters available: {}'.format(repr(name), ', '.join(map(repr, meters_by_name.keys()))))
    return meters_by_name[name]()