def jagged_to_padded_dense_gen_function_call(
    func_attrs,
    indent: str,
) -> str:
    """Generate jagged_to_padded_dense function call."""

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

    return FUNC_CALL_TEMPLATE.render(
        stream=backend_spec.stream,
        func_name=func_attrs["name"],
        index_type=backend_spec.index_type,
        calculate_n=gen_int_var_product_str(y.shape()),
        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(y.shape()),
            has_type=False,
        ),
        offsets=gen_offsets_str(
            jagged_int_var=jagged_int_var,
            has_type=False,
            const_ref=False,
        ),
        indent=indent,
    )
Generate jagged_to_padded_dense function call.
python/aitemplate/backend/cuda/tensor/jagged_to_padded_dense.py