def number_size_validator(v, config, **kwargs):
    if (config.min_number_size <= v <= config.max_number_size):
        return v
    raise ValueError(f'size not in range {config.min_number_size} to {config.max_number_size}')
def number_size_validator(v, config, **kwargs):
    if (config.min_number_size <= v <= config.max_number_size):
        return v
    raise ValueError(f'size not in range {config.min_number_size} to {config.max_number_size}')