class_docstr: Basically an enum, but Python 2 doesn't have enums in the standard library.
code: def __init__(self, names, contains_syntax):
      for name in names:
          setattr(
              self,
              name,
              TokenType(name, contains_syntax=name in contains_syntax),
          )
  
imports: from __future__ import absolute_import
label_desc: Use image node_id 1 to create a new TokenTypes object from inherited base classes: object with example: obj = TokenTypes(names, contains_syntax)