<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def compile_insert_get_id(self, query, values, sequence=None):
 """ Compile an insert and get ID statement into SQL. :param query: A QueryBuilder instance :type query: QueryBuilder :param values: The values to insert :type values: dict :param sequence: The id sequence :type sequence: str :return: The compiled statement :rtype: str """

        if sequence is None:
            sequence = "id"

        return "%s RETURNING %s" % (
            self.compile_insert(query, values),
            self.wrap(sequence),
        )