def get_cantus_firmus(notes):
    result = ''
    # Ensure the notes are in range
    normalised = [note for note in notes if note > 0 and note < 18]
    if not normalised:
        return result
    # Set the duration against the first note.
    result = NOTES[normalised[0]] + ' 1 '
    # Translate all the others.
    result += ' '.join([NOTES[note] for note in normalised[1:]])
    # End with a double bar.
    result += ' \\bar "|."'
    # Tidy up double spaces.
    result = result.replace('  ', ' ')
    return result
:reference: https://dev.twitter.com/rest/reference/get/users/lookup
dataset/ETHPy150Open ntoll/foox/foox/lilypond.py/get_cantus_firmus--crossover with--dataset/ETHPy150Open tweepy/tweepy/tweepy/api.py/API._lookup_users