def get_id(self):
waypoint_index = <NUM_LIT:0><EOL>if '<STR_LIT>' in self.my_osid_object._my_map:<EOL><INDENT>waypoint_index = self.my_osid_object._my_map['<STR_LIT>']<EOL><DEDENT>magic_identifier = OrderedDict({<EOL>'<STR_LIT>': self._level,<EOL>'<STR_LIT>': self.my_osid_object._my_map['<STR_LIT>'],<EOL>})<EOL>if self._magic_parent_id is not None:<EOL><INDENT>magic_identifier['<STR_LIT>'] = str(self._magic_parent_id)<EOL><DEDENT>magic_identifier['<STR_LIT>'] = waypoint_index<EOL>identifier = quote('<STR_LIT>'.format(str(self.my_osid_object._my_map['<STR_LIT>']),<EOL>json.dumps(magic_identifier)))<EOL>return Id(namespace='<STR_LIT>',<EOL>identifier=identifier,<EOL>authority=MAGIC_PART_AUTHORITY)<EOL>
override get_id to generate our "magic" id that encodes scaffolding information