@staticmethod<EOL><INDENT>def process_attributes_of_node(attrs, node_name, class_type):<DEDENT>
<EOL>attrs['<STR_LIT>'] = {}<EOL>attrs['<STR_LIT>'] = defaultdict(list)<EOL>attrs['<STR_LIT>'] = defaultdict(list)<EOL>attrs['<STR_LIT>'] = defaultdict(list)<EOL>attrs['<STR_LIT>'] = {}<EOL>attrs['<STR_LIT>'] = []<EOL>for key, attr in list(attrs.items()):<EOL><INDENT>if hasattr(attr, '<STR_LIT>') and getattr(attr.__base__, '<STR_LIT>', '<STR_LIT>') in ['<STR_LIT>',<EOL>'<STR_LIT>']:<EOL><INDENT>attrs['<STR_LIT>'][key] = attrs[key]<EOL><DEDENT>else:  <EOL><INDENT>attr_type = getattr(attr, '<STR_LIT>', '<STR_LIT>')<EOL>if attr_type == '<STR_LIT>':<EOL><INDENT>attrs['<STR_LIT>' % key] = '<STR_LIT>'<EOL>lnk_mdl_ins = attrs[key]<EOL>lnk = {<EOL>'<STR_LIT:null>': lnk_mdl_ins.null or class_type == '<STR_LIT>',<EOL>'<STR_LIT>': True,<EOL>'<STR_LIT>': lnk_mdl_ins.__class__,<EOL>'<STR_LIT>': lnk_mdl_ins._is_one_to_one,<EOL>'<STR_LIT>': class_type == '<STR_LIT>',<EOL>'<STR_LIT>': lnk_mdl_ins.reverse_name,<EOL>'<STR_LIT>': lnk_mdl_ins.verbose_name,<EOL>'<STR_LIT>': key,<EOL>'<STR_LIT>': False,<EOL>}<EOL>attrs['<STR_LIT>'][attr.__class__.__name__].append(lnk)<EOL>debug_lnk = lnk.copy()<EOL>debug_lnk['<STR_LIT>']= '<STR_LIT>'<EOL>attrs['<STR_LIT>'][attr.__class__.__name__].append(debug_lnk)<EOL><DEDENT>elif attr_type == '<STR_LIT>':<EOL><INDENT>attr.name = key<EOL>attrs['<STR_LIT>'][key] = attr<EOL>if attr.unique:<EOL><INDENT>attrs['<STR_LIT>'].append(key)<EOL><DEDENT><DEDENT>elif attr_type == '<STR_LIT>':<EOL><INDENT>attrs['<STR_LIT>' % key] = '<STR_LIT>'<EOL>lzy_lnk = attrs[key]<EOL>attrs['<STR_LIT>'][key].append({'<STR_LIT>': node_name,<EOL>'<STR_LIT:to>': lzy_lnk.link_to,<EOL>'<STR_LIT>': lzy_lnk.one_to_one,<EOL>'<STR_LIT>': lzy_lnk.verbose_name,<EOL>'<STR_LIT>': lzy_lnk.reverse_name,<EOL>'<STR_LIT>': key})<EOL><DEDENT><DEDENT><DEDENT>
prepare the model fields, nodes and relations

Args:
    node_name (str): name of the node we are currently processing
    attrs (dict): attribute dict
    class_type (str): Type of class.
        Can be one of these: 'ListNode', 'Model', 'Node'