def test_trainer_kwargs(get_ensemble_config: dict) -> None:
        """Test that objects are correctly constructed from kwargs."""
        config = get_ensemble_config

        objects = parse_trainer_kwargs(config["TrainModels"]["trainer"])
        assert isinstance(objects, Namespace)
        # verify that early stopping is parsed and added to callbacks
        assert isinstance(objects.callbacks[0], EarlyStopping)
Test that objects are correctly constructed from kwargs.
tests/unit/pipelines/tiled_ensemble/test_helper_functions.py