code: def check_note(note, chord):
      
      if note not in NOTE_VAL_DICT:
          raise ValueError("Invalid chord {}: Unknown note {}".format(chord, note))
      return True
docs: Return True if the note is valid.
  
      :param str note: note to check its validity
      :param str chord: the chord which includes the note
      :rtype: bool