parameters: (self)
docstring: Imitate the tree.Node.type values.
docstring_summary: Imitate the tree.Node.type values.
docstring_tokens: Imitate the tree . Node . type values .
function: def type(self):
          """Imitate the tree.Node.type values."""
          cls = self._get_class()
          if inspect.isclass(cls):
              return 'classdef'
          elif inspect.ismodule(cls):
              return 'file_input'
          elif inspect.isbuiltin(cls) or inspect.ismethod(cls) or \
                  inspect.ismethoddescriptor(cls):
              return 'funcdef'
function_tokens: def type ( self ) : cls = self . _get_class ( ) if inspect . isclass ( cls ) : return 'classdef' elif inspect . ismodule ( cls ) : return 'file_input' elif inspect . isbuiltin ( cls ) or inspect . ismethod ( cls ) or inspect . ismethoddescriptor ( cls ) : return 'funcdef'