def get_labels(self):
        res = []
        if self._label:
            res.append(self._label)
        if self.id:
            res.extend(self._form._id_to_labels.get(self.id, ()))
        return res


#---------------------------------------------------
Extract a module-level docstring
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/samples-and-tests/i-am-a-developer/mechanize/ClientForm.py/Control.get_labels--crossover with--dataset/ETHPy150Open scikit-beam/scikit-beam/doc/sphinxext/plot_generator.py/ExampleGenerator.extract_docstring