def __init__(self, etype, entity_id, attrs=dict()):
if etype not in Entity.ENTITY_TYPES:<EOL><INDENT>raise ValueError("<STR_LIT>" + etype)<EOL><DEDENT>self.entity_id = entity_id<EOL>self.etype = etype<EOL>self.attrs = attrs<EOL>
Create Entity.