code: def get_language_id_from_pretrained_model_name(supported_languages):
      def _validate(pretrained_model_name):
          language_id = pretrained_model_name.split("_")[1]
          if language_id not in supported_languages:
              pytest.fail(
                  f"`PretrainedModelInfo.pretrained_model_name={pretrained_model_name}` does not follow the naming "
                  f"convention as `tts_languageID_model_*`, or `languageID` is not supported in {supported_languages}."
              )
          return language_id
  
      return _validate
  
file_path: NeMo/tests/fixtures/tts.py
imports: import os
  import pytest
  import soundfile
  import torch
  from nemo.collections.asr.parts.utils.manifest_utils import read_manifest
label_desc: Use image node_id 4 for calling a global function with example usage: get_language_id_from_pretrained_model_name(supported_languages) and returns: _validate, language_id