#NEWLINE# def get_namespaces( self , entity , ns_dict = None ) : #NEWLINE# #INDENT# ns_info = NamespaceInfo ( ) #NEWLINE# for node in iterwalk ( ns_dict ) : #NEWLINE# #INDENT# ns_info . collect ( node ) #NEWLINE# #UNINDENT# ns_info . finalize ( ns_dict = ns_dict ) #NEWLINE# return ns_info . finalized_namespaces