code: def load_speaker_mapping(out_path):
      """Loads speaker mapping if already present."""
      try:
          if os.path.splitext(out_path)[1] == ".json":
              json_file = out_path
          else:
              json_file = make_speakers_json_path(out_path)
          with open(json_file) as f:
              return json.load(f)
      except FileNotFoundError:
          return {}
  
imports: import os
  import json
label_desc: Use image node_id 2 for calling a global function with example usage: load_speaker_mapping(out_path) and returns: json, dict