code: def test_confidence_ensemble(tmp_path, build_args):
      """Integration tests for confidence-ensembles.
  
      Tests building ensemble and running inference with the model.
      To use, make sure to define TEST_DATA_PATH env variable with path to
      the test data. The following structure is assumed:
  
          $TEST_DATA_PATH
          ├── es
          │   ├── dev
          │   ├── dev_manifest.json
          │   ├── test
          │   ├── train
          │   └── train_manifest.json
          ├── it
          │   ├── dev
          │   ├── dev_manifest.json
          │   ├── test
          │   ├── test_manifest.json
          │   ├── train
          │   └── train_manifest.json
          └── test_manifest.json
  
      """
      # checking for test data and failing right away if not defined
      if not os.getenv("TEST_DATA_PATH"):
          raise ValueError(
              "TEST_DATA_PATH env variable has to be defined!"
          )
  
      test_data_path = Path(os.environ["TEST_DATA_PATH"])
  
      build_ensemble_cmd = f"""
          python {Path(__file__).parent / 'build_ensemble.py'} \
              --config-name=ensemble_config.yaml \
              output_path={tmp_path / 'ensemble.nemo'} \
              {build_args}
      """
      subprocess.run(build_ensemble_cmd, check=True, shell=True)
  
      eval_cfg = speech_to_text_eval.EvaluationConfig(
          dataset_manifest=str(test_data_path / "test_manifest.json"),
          output_filename=str(tmp_path / "output.json"),
          model_path=str(tmp_path / "ensemble.nemo"),
          text_processing=TextProcessingConfig(
              punctuation_marks=".,?",
              do_lowercase=True,
              rm_punctuation=True,
          ),
      )
  
      results = speech_to_text_eval.main(eval_cfg)
      assert results.metric_value < 0.20
  
file_path: NeMo/scripts/confidence_ensembles/test_confidence_ensembles.py
imports: import os
  import subprocess
  import sys
  from pathlib import Path
  import pytest
  from nemo.collections.asr.parts.utils.transcribe_utils import TextProcessingConfig
  import speech_to_text_eval
label_desc: Use image node_id 1 for calling a global function with example usage: test_confidence_ensemble(tmp_path, build_args) without return types