code: def parse(filepath, beat_resolution=24, name='unknown'):
      
      if not filepath.endswith(('.mid', '.midi', '.MID', '.MIDI')):
          raise ValueError("Only MIDI files are supported")
      return Multitrack(filepath, beat_resolution=beat_resolution, name=name)
docs: Return a :class:`pypianoroll.Multitrack` object loaded from a MIDI
      (.mid, .midi, .MID, .MIDI) file.
  
      Parameters
      ----------
      filepath : str
          The file path to the MIDI file.