async def METHOD_NAME(async_client: "AsyncClient", argilla_user: User):
    async_client.headers.update({API_KEY_HEADER_NAME: argilla_user.api_key})
    workspace_name = argilla_user.username
    name = "test_validate_settings_when_logging_data"
    await delete_dataset(async_client, name, workspace_name=workspace_name)
    await create_dataset(async_client, name, workspace_name=workspace_name)
    response = await create_settings(async_client, name, workspace_name)
    assert response.status_code == 200
    response = await log_some_data(async_client, name, workspace_name)
    assert response.status_code == 400
    assert response.json() == {
        "detail": {
            "code": "argilla.api.errors::BadRequestError",
            "params": {
                "message": "Provided records contain the BAD label, "
                "that is not included in the labels schema.\n"
                "Please, annotate your records using labels "
                "defined in the labels schema."
            },
        }
    }