def METHOD_NAME(self):
    if self._table.type == _symtable.TYPE_MODULE:
        return "module"
    if self._table.type == _symtable.TYPE_FUNCTION:
        return "function"
    if self._table.type == _symtable.TYPE_CLASS:
        return "class"
    assert self._table.type in (1, 2, 3), \
           "unexpected type: {0}".format(self._table.type)