<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_extensions(self, klass):
 """Return all registered extensions of a class. :param klass: Class to get registered extensions for :return: All registered extensions for given class """

        self.discover_extensions()

        return self._extensions.get(self._get_class_path(klass), [])