@mark.parametrize('input, expected', [([1, 2, 3], ng.p.Choice([1, 2, 3])), (['1', '2', '3'], ng.p.Choice(['1', '2', '3'])), ({'lower': 1, 'upper': 12, 'log': True}, ng.p.Log(lower=1, upper=12)), ({'lower': 1, 'upper': 12}, ng.p.Scalar(lower=1, upper=12)), ({'lower': 1, 'upper': 12, 'integer': True}, get_scalar_with_integer_bounds(1, 12, ng.p.Scalar)), ({'lower': 1, 'upper': 12, 'log': True, 'integer': True}, get_scalar_with_integer_bounds(1, 12, ng.p.Log))])
def test_create_nevergrad_parameter_from_config(input: Any, expected: Any) -> None:
    actual = _impl.create_nevergrad_param_from_config(input)
    assert_ng_param_equals(expected, actual)
@mark.parametrize('input, expected', [([1, 2, 3], ng.p.Choice([1, 2, 3])), (['1', '2', '3'], ng.p.Choice(['1', '2', '3'])), ({'lower': 1, 'upper': 12, 'log': True}, ng.p.Log(lower=1, upper=12)), ({'lower': 1, 'upper': 12}, ng.p.Scalar(lower=1, upper=12)), ({'lower': 1, 'upper': 12, 'integer': True}, get_scalar_with_integer_bounds(1, 12, ng.p.Scalar)), ({'lower': 1, 'upper': 12, 'log': True, 'integer': True}, get_scalar_with_integer_bounds(1, 12, ng.p.Log))])
def test_create_nevergrad_parameter_from_config(input: Any, expected: Any) -> None:
    actual = _impl.create_nevergrad_param_from_config(input)
    assert_ng_param_equals(expected, actual)