code: def _get_consensus_names(indexes):
      
  
      # find the non-none names, need to tupleify to make
      # the set hashable, then reverse on return
      consensus_names = {tuple(i.names) for i in indexes
                         if com._any_not_none(*i.names)}
      if len(consensus_names) == 1:
          return list(list(consensus_names)[0])
      return [None] * indexes[0].nlevels
docs: 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.