<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def name(self):
 """Name of the model type. For base models, |Model.name| corresponds to the package name: 'hland' For application models, |Model.name| corresponds the module name: 'hland_v1' This last example has only technical reasons: 'hland' """

        name = self.__name
        if name:
            return name
        subs = self.__module__.split('.')
        if len(subs) == 2:
            type(self).__name = subs[1]
        else:
            type(self).__name = subs[2]
        return self.__name