human
I wrote the below code

    def q(qid):
        try:
            return quality_ids.index(qid)
        except ValueError:
            return (-1)
    return q

What's a good function header?
assistant
#Here's a good function header.

def qualities(quality_ids):