#NEWLINE# def __init__( self , _root = None ) : #NEWLINE# #INDENT# super ( InstanceObjectType , self ) . __init__ ( _root = _root ) #NEWLINE# assert ( ( not self . _root ) or isinstance ( self . _root , self . _meta . model ) ) , '{} received a non-compatible instance ({}) when expecting {}' . format ( self . __class__ . __name__ , self . _root . __class__ . __name__ , _root . _meta . model . __name__ )