def METHOD_NAME(func: Union[SlicingFunctionType, Type[SlicingFunction]]) -> SlicingFunction:
    from giskard.ml_worker.testing.registry.registry import tests_registry
    tests_registry.register(
        DatasetProcessFunctionMeta(
            func,
            name=name,
            tags=default_tags if not tags else (default_tags + tags),
            type="SLICE",
            cell_level=cell_level,
        )
    )
    if inspect.isclass(func) and issubclass(func, SlicingFunction):
        return func
    return _wrap_slicing_function(func, row_level, cell_level)()