code: def getTypeLastNode(self, 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
docs: 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