def install_labels(cls, quiet=True, stdout=None):
if not hasattr(cls, '<STR_LIT>'):<EOL><INDENT>if not quiet:<EOL><INDENT>stdout.write('<STR_LIT>'.format(cls.__module__, cls.__name__))<EOL><DEDENT>return<EOL><DEDENT>for name, property in cls.defined_properties(aliases=False, rels=False).items():<EOL><INDENT>db_property = property.db_property or name<EOL>if property.index:<EOL><INDENT>if not quiet:<EOL><INDENT>stdout.write('<STR_LIT>'.format(<EOL>name, cls.__label__, cls.__module__, cls.__name__))<EOL><DEDENT>db.cypher_query("<STR_LIT>".format(<EOL>cls.__label__, db_property))<EOL><DEDENT>elif property.unique_index:<EOL><INDENT>if not quiet:<EOL><INDENT>stdout.write('<STR_LIT>'.format(<EOL>name, cls.__label__, cls.__module__, cls.__name__))<EOL><DEDENT>db.cypher_query("<STR_LIT>"<EOL>"<STR_LIT>".format(<EOL>cls.__label__, db_property))<EOL><DEDENT><DEDENT>
Setup labels with indexes and constraints for a given class

:param cls: StructuredNode class
:type: class
:param quiet: (default true) enable standard output
:param stdout: stdout stream
:type: bool
:return: None