def padded_dense_to_jagged_gen_function_decl(func_attrs) -> str:
    """Generate padded_dense_to_jagged function declaration."""

    x = func_attrs["inputs"][0]
    y = func_attrs["outputs"][0]
    jagged_int_var = func_attrs["jagged_int_var"]
    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,
        num_offsets=len(jagged_int_var.jagged_dims()),
        dynamic_dims=gen_dynamic_dim_str(
            index_type=backend_spec.index_type,
            dynamic_dims=get_dynamic_dims(x.shape(), y.shape()),
            has_type=True,
        ),
    )
Generate padded_dense_to_jagged function declaration.
python/aitemplate/backend/cuda/tensor/padded_dense_to_jagged.py