code: def test_note_to_midi(tuning, accidental, octave, round_midi: bool):
      note = "C{:s}".format(accidental)
  
      if octave is not None:
          note = "{:s}{:d}".format(note, octave)
      else:
          octave = 0
  
      if tuning is not None:
          note = "{:s}{:+d}".format(note, tuning)
      else:
          tuning = 0
  
      midi_true = 12 * (octave + 1) + tuning * 0.01
  
      if accidental == "#":
          midi_true += 1
      elif accidental in list("b!"):
          midi_true -= 1
  
      midi = librosa.note_to_midi(note, round_midi=round_midi)
      if round_midi:
          midi_true = np.round(midi_true)
      assert midi == midi_true
  
      midi = librosa.note_to_midi([note], round_midi=round_midi)
      assert midi[0] == midi_true
  
imports: import os
  import sys
  import warnings
  import librosa
  import numpy
  import pytest
label_desc: Use image node_id 11 for calling a global function with example usage: test_note_to_midi(tuning, accidental, octave, round_midi) without return types