<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def prepare(self, flowable_target):
 """Determine number labels and register references with the document"""

        if self.get_id(flowable_target.document, create=False):
            flowable_target.document.register_element(self)