def check_register_decorator(func: WorkflowTypeVar) -> None:
# get names of all parameters in the function signature
sig = inspect.signature(func)
params = list(sig.parameters.keys())
if params != ["ui", "params"]:
raise ValueError(
f"Expected function signature to be 'def func(ui: UI, workflow_uuid: str, params: dict[str, Any]) -> str', got {sig}"
)