class_docstr: Only basic tests that are very fast to run.
  
  There are much more extensive integration tests available in
  scripts/confidence_ensembles/test_confidence_ensembles.py
class_docstr_tok: ["Only","basic","tests","that","are","very","fast","to","run",".","There","are","much","more","extensive","integration","tests","available","in","scripts\/confidence_ensembles\/test_confidence_ensembles.py"]
docstr: Basic test to check that ensemble of 5 models can be created.
docstr_tok: ["Basic","test","to","check","that","ensemble","of","5","models","can","be","created","."]
code: def test_model_creation_5models(self, tmp_path):
      """Basic test to check that ensemble of 5 models can be created."""
      model_configs = [
          get_model_config(EncDecCTCModel) for _ in range(5)
      ]
  
      # dummy pickle file for the model selection block
      joblib.dump({}, tmp_path / "dummy.pkl")
  
      # default confidence
      confidence_config = ConfidenceConfig(
          # we keep frame confidences and apply aggregation manually to get full-utterance confidence
          preserve_frame_confidence=True,
          exclude_blank=True,
          aggregation="mean",
          method_cfg=ConfidenceMethodConfig(
              name="entropy",
              entropy_type="renyi",
              alpha=0.25,
              entropy_norm="lin",
          ),
      )
  
      # just checking that no errors are raised when creating the model
      ConfidenceEnsembleModel(
          cfg=DictConfig(
              {
                  "model_selection_block": str(tmp_path / "dummy.pkl"),
                  "confidence": confidence_config,
                  "temperature": 1.0,
                  "num_models": 2,
                  "model0": model_configs[0],
                  "model1": model_configs[1],
                  "model2": model_configs[2],
                  "model3": model_configs[3],
                  "model4": model_configs[4],
              }
          ),
          trainer=None,
      )
  
file_path: NeMo/tests/collections/asr/test_confidence_ensembles.py
imports: import joblib
  import pytest
  from omegaconf import DictConfig, ListConfig
  from nemo.collections.asr.models import EncDecCTCModel, EncDecHybridRNNTCTCModel, EncDecRNNTModel
  from nemo.collections.asr.models.confidence_ensemble import ConfidenceEnsembleModel
  from nemo.collections.asr.parts.submodules.ctc_decoding import CTCDecodingConfig
  from nemo.collections.asr.parts.utils.asr_confidence_utils import ConfidenceConfig, ConfidenceMethodConfig
label_desc: Use image node_id 2 for calling the TestConfidenceEnsembles obj's underlying member method code with example usage: obj.test_model_creation_5models(tmp_path) without return types