def test_comet_log_hyperparams(comet_mock, tmp_path, monkeypatch):
    """Test that CometLogger.log_hyperparams calls internal API method."""
    _patch_comet_atexit(monkeypatch)

    logger = CometLogger(project_name="test")
    hyperparams = {
        "batch_size": 256,
        "config": {
            "SLURM Job ID": "22334455",
            "RGB slurm jobID": "12345678",
            "autoencoder_model": False,
        },
    }
    logger.log_hyperparams(hyperparams)

    logger.experiment.__internal_api__log_parameters__.assert_called_once_with(
        parameters=hyperparams,
        framework=FRAMEWORK_NAME,
        flatten_nested=True,
        source="manual",
    )
Test that CometLogger.log_hyperparams calls internal API method.
tests/tests_pytorch/loggers/test_comet.py