def gen_function_decl(func_attrs, backend_spec):
    """Generate function declaration.

    Parameters
    ----------
    func_attrs : Dict[str, Any]
        Stores the operation attributes.
    backend_spec: dataclass
        Backend specification.

    Returns
    -------
    str
        Rendered function declaration.
    """
    return slice_common.gen_function_decl(func_attrs, backend_spec=backend_spec)
Generate function declaration.

Parameters
----------
func_attrs : Dict[str, Any]
Stores the operation attributes.
backend_spec: dataclass
Backend specification.

Returns
-------
str
Rendered function declaration.
python/aitemplate/backend/common/tensor/slice_reshape_scatter_common.py