def jagged_to_padded_dense_gen_function_decl(func_attrs) -> str:
    """Generate jagged_to_padded_dense function declaration."""

    x = func_attrs["inputs"][0]
    y = func_attrs["outputs"][0]
    jagged_int_var = x.shape()[0]
    func_name = func_attrs["name"]
    backend_spec = CUDASpec()

    return FUNC_DECL_TEMPLATE.render(
        prefix=backend_spec.prefix,
        index_type=backend_spec.index_type,
        func_name=func_name,
        dynamic_dims=gen_dynamic_dim_str(
            index_type=backend_spec.index_type,
            dynamic_dims=get_dynamic_dims(y.shape()),
            has_type=True,
        ),
        offsets=gen_offsets_str(
            jagged_int_var=jagged_int_var,
            has_type=True,
            const_ref=True,
            name="offsets",
        ),
    )
Generate jagged_to_padded_dense function declaration.
python/aitemplate/backend/cuda/tensor/jagged_to_padded_dense.py