def convert_key_to_index(keys, key):
index = _key_to_index(keys, key)<EOL>single = isinstance(index, int)<EOL>return index, single<EOL>
convert ``key`` of various types to int or list of int

return index, single