def _set_headers(self, collection):
        self._validate(collection)
        if collection:
            try:
                self.__headers = list(collection)
            except TypeError:
                raise TypeError
        else:
            self.__headers = None
Populates the sidebar with (categories, types).
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/tablib-0.10.0/tablib/core.py/Dataset._set_headers--crossover with--dataset/ETHPy150Open mozilla/addons-server/src/olympia/amo/helpers.py/sidebar