code: def get_pyannote_objs_from_rttms(rttm_file_path_list):
      """Generate PyAnnote objects from RTTM file list"""
      pyannote_obj_list = []
      for rttm_file in rttm_file_path_list:
          rttm_file = rttm_file.strip()
          if rttm_file is not None and os.path.exists(rttm_file):
              uniq_id = get_uniqname_from_filepath(rttm_file)
              ref_labels = rttm_to_labels(rttm_file)
              reference = labels_to_pyannote_object(
                  ref_labels, uniq_name=uniq_id
              )
              pyannote_obj_list.append([uniq_id, reference])
      return pyannote_obj_list
  
file_path: NeMo/scripts/speaker_tasks/eval_diar_with_asr.py
imports: import argparse
  import json
  import os
  from nemo.collections.asr.metrics.der import evaluate_der
  from nemo.collections.asr.parts.utils.diarization_utils import OfflineDiarWithASR
  from nemo.collections.asr.parts.utils.manifest_utils import read_file
  from nemo.collections.asr.parts.utils.speaker_utils import get_uniqname_from_filepath, labels_to_pyannote_object, rttm_to_labels
label_desc: Use image node_id 1 for calling a global function with example usage: get_pyannote_objs_from_rttms(rttm_file_path_list) and returns: pyannote_obj_list