def METHOD_NAME(codelist, user):
    owner_choices = [(user.owner_identifier, "Me")]
    if codelist.user and codelist.user != user:
        # User is collaborator on codelist owned by another user
        owner_choices.append((codelist.user.owner_identifier, codelist.user.name))
    for organisation in user.organisations.all():
        owner_choices.append((organisation.owner_identifier, organisation.name))
    if codelist.organisation and codelist.organisation not in user.organisations.all():
        # User is collaborator on codelist owned by organisation they don't belong to.
        owner_choices.append(
            (codelist.organisation.owner_identifier, codelist.organisation.name)
        )
    return sorted(owner_choices, key=lambda choice: choice[1])