<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def register_layout(self, name, layout):
 """ Registers given layout. :param name: Layout name. :type name: unicode :param layout: Layout object. :type layout: Layout :return: Method success. :rtype: bool """


        if name in self:
            raise umbra.exceptions.LayoutRegistrationError("{0} | '{1}' layout is already registered!".format(
                self.__class__.__name__, name))

        self.__layouts[name] = layout
        return True