code: def load_midi_note_scp(midi_note_scp):
      # Note(jiatong): midi format is 0-based
      midi_mapping = {}
      with open(midi_note_scp, "r", encoding="utf-8") as f:
          content = f.read().strip().split("\n")
          for key in content:
              key = key.split("\t")
              midi_mapping[key[1]] = int(key[0])
      return midi_mapping
  
file_path: espnet/egs2/opencpop/svs1/local/data_prep.py
imports: import argparse
  import os
  import shutil
  import librosa
  import miditoolkit
  import numpy
  from espnet2.fileio.score_scp import SingingScoreWriter
label_desc: Use image node_id 2 for calling a global function with example usage: load_midi_note_scp(midi_note_scp) and returns: midi_mapping