def padded_dense_to_jagged_gen_function_call(
    func_attrs,
    indent: str,
) -> str:
    """Generate padded_dense_to_jagged function call."""

    x = func_attrs["inputs"][0]
    y = func_attrs["outputs"][0]
    jagged_int_var = func_attrs["jagged_int_var"]
    backend_spec = CUDASpec()

    offsets_list = func_attrs["inputs"][1:]
    offsets_first_dim_names = [
        offsets._attrs["shape"][0]._attrs["name"] for offsets in offsets_list
    ]
    offsets_data_names = [offsets._attrs["name"] for offsets in offsets_list]

    return FUNC_CALL_TEMPLATE.render(
        stream=backend_spec.stream,
        func_name=func_attrs["name"],
        num_offsets=len(jagged_int_var.jagged_dims()),
        offsets_first_dim_names=offsets_first_dim_names,
        offsets_data_names=offsets_data_names,
        y=y._attrs["name"],
        x=x._attrs["name"],
        dynamic_dims=gen_dynamic_dim_str(
            index_type=backend_spec.index_type,
            dynamic_dims=get_dynamic_dims(x.shape(), y.shape()),
            has_type=False,
        ),
        indent=indent,
    )
Generate padded_dense_to_jagged function call.
python/aitemplate/backend/cuda/tensor/padded_dense_to_jagged.py