def _get_consensus_names(indexes):
<EOL>consensus_names = {tuple(i.names) for i in indexes<EOL>if com._any_not_none(*i.names)}<EOL>if len(consensus_names) == <NUM_LIT:1>:<EOL><INDENT>return list(list(consensus_names)[<NUM_LIT:0>])<EOL><DEDENT>return [None] * indexes[<NUM_LIT:0>].nlevels<EOL>
Give a consensus 'names' to indexes.

If there's exactly one non-empty 'names', return this,
otherwise, return empty.

Parameters
----------
indexes : list of Index objects

Returns
-------
list
    A list representing the consensus 'names' found.