def _register_update_callbacks(self, update_callbacks):
        """
        .. todo::

            WRITEME
        """
        if update_callbacks is None:
            update_callbacks = []
        # If it's iterable, we're fine. If not, it's a single callback,
        # so wrap it in a list.
        try:
            iter(update_callbacks)
            self.update_callbacks = update_callbacks
        except __HOLE__:
            self.update_callbacks = [update_callbacks]
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/training_algorithms/training_algorithm.py/TrainingAlgorithm._register_update_callbacks