def METHOD_NAME(value):
    CORE.vscode = True
    actual = config_validation.valid_name(value)
    assert actual == value
    CORE.vscode = False
    with pytest.raises(Invalid):
        actual = config_validation.valid_name(value)