def test_empty_hparams_container(tmp_path):
    """Test that save_hyperparameters() is a no-op when saving an empty hparams container."""
    model = HparamsKwargsContainerModel()
    assert not model.hparams
    model = HparamsNamespaceContainerModel(Namespace())
    assert not model.hparams
Test that save_hyperparameters() is a no-op when saving an empty hparams container.
tests/tests_pytorch/models/test_hparams.py