code: def save_speaker_mapping(out_path, speaker_mapping):
      """Saves speaker mapping if not yet present."""
      speakers_json_path = make_speakers_json_path(out_path)
      with open(speakers_json_path, "w") as f:
          json.dump(speaker_mapping, f, indent=4)
  
imports: import os
  import json
label_desc: Use image node_id 3 for calling a global function with example usage: save_speaker_mapping(out_path, speaker_mapping) without return types