def _create_set_up_constant_offsets(self) -> str:
        """
        bound_constant_offsets_ stores a map for each constant to the offset in constant buffer,
        constant_folding_outputs_offsets_ stores a map from each output of constant folding
        to its offset inside the constant buffer.


        When the model is loaded, we use these offsets to wire up the constant folding output
        pointers to the outputs of the constant folder.
        """
        constant_offsets = ""
        if self.set_up_constant_folding_outputs_offsets:
            constant_offsets = jinja2.Template(
                """
    constant_folding_outputs_offsets_.resize({{num_constant_folding_outputs}});
    {{set_up_statements}}
    """
            ).render(
                num_constant_folding_outputs=len(
                    self.set_up_constant_folding_outputs_offsets
                ),
                set_up_statements="\n".join(
                    self.set_up_constant_folding_outputs_offsets
                ),
            )
            constant_offsets += "\n"
        if self.set_up_bound_constant_offsets:
            constant_offsets += jinja2.Template(
                """
    bound_constant_offsets_.resize({{num_bound_constant_offsets}});
    {{set_up_statements}}
    """
            ).render(
                num_bound_constant_offsets=len(self.set_up_bound_constant_offsets),
                set_up_statements="\n".join(self.set_up_bound_constant_offsets),
            )
        return constant_offsets

        bound_constant_offsets_ stores a map for each constant to the offset in constant buffer,
        constant_folding_outputs_offsets_ stores a map from each output of constant folding
        to its offset inside the constant buffer.


        When the model is loaded, we use these offsets to wire up the constant folding output
        pointers to the outputs of the constant folder.
        
python/aitemplate/backend/codegen.py