code: def tempo2bpm(tempo, time_signature=DEFAULT_TIME_SIGNATURE):
      """
      Convert MIDI file tempo (microseconds per quarter note) to BPM (beats per
      minute).
  
      Depending on the chosen time signature a bar contains a different number of
      beats. These beats are multiples/fractions of a quarter note, thus the
      returned tempo depends on the time signature.
  
      """
      return 60 * 1e6 / tempo * time_signature[1] / 4.0
  
imports: from __future__ import absolute_import, division, print_function
  import warnings
  import mido
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: tempo2bpm(tempo, time_signature) and returns: unknown