def test_deepspeed_defaults():
    """Ensure that defaults are correctly set as a config for DeepSpeed if no arguments are passed."""
    strategy = DeepSpeedStrategy()
    assert strategy.config is not None
    assert isinstance(strategy.config["zero_optimization"], dict)
    assert strategy._backward_sync_control is None
Ensure that defaults are correctly set as a config for DeepSpeed if no arguments are passed.
tests/tests_fabric/strategies/test_deepspeed.py