<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getTypeLastNode(self, type_):
 """ Obtains the last node or leaf of the type specified :param type_: Type we want to analize (sementity, semtheme) :return: Last node of the type """


        lastNode = ""
        if type_ and (type(type_) is not list) and (type(type_) is not dict):
            aType = type_.split('>')
            lastNode = aType[len(aType) - 1]
        return lastNode