code: def filename_to_id(filename):
      """Translate a .wav or .mid path to a MAPS sequence id."""
      return re.match(
          r".*MUS-(.*)_[^_]+\.\w{3}",
          six.ensure_str(os.path.basename(filename)),
      ).group(1)
  
file_path: magenta/magenta/models/onsets_frames_transcription/onsets_frames_transcription_create_dataset_maps.py
imports: import glob
  import os
  import re
  from magenta.models.onsets_frames_transcription import audio_label_data_utils
  from note_seq import audio_io
  from note_seq import midi_io
  import six
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling a global function with example usage: filename_to_id(filename) and returns: re